Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009982/0.0009982, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8795/0.8795, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 318.5 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.157e-05, allocations: 2.281 kB / 318.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.002778/0.002799, allocations: 2.722 MB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009461/0.003745, allocations: 0.7012 MB / 321.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.003862, allocations: 8 kB / 321.9 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.003995, allocations: 51.5 kB / 322 MB, free: 2.812 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.004136, allocations: 103.1 kB / 322.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.004385, allocations: 123.7 kB / 322.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003091/0.004694, allocations: 430.1 kB / 322.6 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.004859, allocations: 83.66 kB / 322.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.00505, allocations: 243.4 kB / 322.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.005178, allocations: 127.6 kB / 323 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.005222, allocations: 40 kB / 323.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.999e-05/0.005252, allocations: 40 kB / 323.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.005306, allocations: 87.66 kB / 323.2 MB, free: 1.555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.005393, allocations: 119.7 kB / 323.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003285/0.005722, allocations: 462.6 kB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.005725, allocations: 0 / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.005726, allocations: 0 / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.005731, allocations: 0 / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009273/0.006659, allocations: 0.6092 MB / 324.4 MB, free: 348 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.006701, allocations: 12.92 kB / 324.4 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.006751, allocations: 62.73 kB / 324.5 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.006802, allocations: 32.75 kB / 324.5 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.007136, allocations: 253 kB / 324.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.007155, allocations: 20.88 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.007184, allocations: 24.38 kB / 324.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.007633, allocations: 374.6 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.007643, allocations: 192 / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.007668, allocations: 20.12 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.007675, allocations: 4 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.008097, allocations: 285.8 kB / 325.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.0092, allocations: 1.031 MB / 326.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.009662, allocations: 242.6 kB / 326.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.009828, allocations: 100.7 kB / 326.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.009849, allocations: 4 kB / 326.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.01017, allocations: 240 kB / 327.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.092e-06/0.01017, allocations: 0 / 327.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001216/0.01138, allocations: 0.5799 MB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.01144, allocations: 110.8 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.01165, allocations: 285.8 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.01167, allocations: 29.7 kB / 328.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.747e-05/0.01176, allocations: 200 kB / 328.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.01179, allocations: 51.62 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.994e-05/0.01185, allocations: 49.89 kB / 328.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.185e-05/0.01194, allocations: 342.8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.01214, allocations: 134.1 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.01239, allocations: 281.9 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003738/0.01276, allocations: 314.6 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.01277, allocations: 4 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006678/0.01343, allocations: 0.4899 MB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.01347, allocations: 33.7 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.01348, allocations: 7.938 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.01374, allocations: 80.8 kB / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.01385, allocations: 47.97 kB / 330.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.01536, allocations: 1.875 MB / 331.9 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.01553, allocations: 59.8 kB / 332 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.01554, allocations: 8 kB / 332 MB, free: 8.227 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.01565, allocations: 153.7 kB / 332.2 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.01567, allocations: 23.81 kB / 332.2 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.0157, allocations: 29.77 kB / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.0157, allocations: 48 / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.01571, allocations: 3.984 kB / 332.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01571, allocations: 8 kB / 332.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.01588, allocations: 260.5 kB / 332.5 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01589, allocations: 0 / 332.5 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.01596, allocations: 23.97 kB / 332.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/0.01612, allocations: 80.8 kB / 332.6 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.01613, allocations: 8 kB / 332.6 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.01739, allocations: 1.686 MB / 334.3 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.0174, allocations: 0 / 334.3 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005404/0.01794, allocations: 373.1 kB / 334.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.01796, allocations: 27.78 kB / 334.7 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.01799, allocations: 8 kB / 334.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.0181, allocations: 31.95 kB / 334.7 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.01816, allocations: 23.91 kB / 334.7 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.01817, allocations: 8 kB / 334.7 MB, free: 5.312 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001271/0.01829, allocations: 201.2 kB / 334.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01829, allocations: 0 / 334.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002432/0.01854, allocations: 79.89 kB / 335 MB, free: 5.035 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007449/0.01928, allocations: 0.8979 MB / 335.9 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006128/0.01989, allocations: 463.4 kB / 336.4 MB, free: 3.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.0199, allocations: 4.125 kB / 336.4 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.02014, allocations: 226.5 kB / 336.6 MB, free: 3.383 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.02037, allocations: 56.53 kB / 336.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.02345, allocations: 3.224 MB / 339.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.229e-05/0.02354, allocations: 146.8 kB / 340 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.217e-05/0.02363, allocations: 30.27 kB / 340 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.918e-05/0.02372, allocations: 88.47 kB / 340.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02372, allocations: 0 / 340.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.04576, allocations: 7.675 MB / 347.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/7.89, allocations: 7.984 kB / 347.8 MB, free: 8.141 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gain.opAmp.out.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.625375336967409]