Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.002507/0.002507, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002827/0.002827, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 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 1.695/1.695, allocations: 173.4 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.074e-05/1.074e-05, allocations: 4 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.353e-05/4.427e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.008335/0.008379, allocations: 2.754 MB / 270.1 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.01065, allocations: 0.6231 MB / 270.7 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.01087, allocations: 8 kB / 270.7 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.01116, allocations: 51.5 kB / 270.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003587/0.01152, allocations: 95.06 kB / 270.9 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004862/0.012, allocations: 95.81 kB / 271 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008114/0.01281, allocations: 386.3 kB / 271.3 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.01315, allocations: 91.31 kB / 271.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004902/0.01364, allocations: 215.5 kB / 271.6 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.01398, allocations: 123.6 kB / 271.8 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.924e-05/0.01408, allocations: 36 kB / 271.8 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.01419, allocations: 32 kB / 271.8 MB, free: 2.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.01433, allocations: 79.72 kB / 271.9 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.01458, allocations: 115.7 kB / 272 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007752/0.01535, allocations: 390.8 kB / 272.4 MB, free: 1.641 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01536, allocations: 3.938 kB / 272.4 MB, free: 1.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01536, allocations: 0 / 272.4 MB, free: 1.637 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.01537, allocations: 0 / 272.4 MB, free: 1.637 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002/0.01737, allocations: 0.6815 MB / 273.1 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.01741, allocations: 12.92 kB / 273.1 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.01756, allocations: 52.75 kB / 273.1 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.01801, allocations: 236.9 kB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.01804, allocations: 12.88 kB / 273.4 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.01809, allocations: 24.38 kB / 273.4 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/0.01879, allocations: 352.4 kB / 273.8 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.0188, allocations: 192 / 273.8 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.01884, allocations: 8.375 kB / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.01885, allocations: 7.938 kB / 273.8 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006504/0.0195, allocations: 221.8 kB / 274 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.02136, allocations: 1.082 MB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/0.02198, allocations: 183.1 kB / 275.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.02221, allocations: 75.59 kB / 275.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.02225, allocations: 4.031 kB / 275.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004483/0.0227, allocations: 223.4 kB / 275.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 9.82e-07/0.0227, allocations: 0 / 275.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.00158/0.02428, allocations: 360.8 kB / 275.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.161e-05/0.02437, allocations: 106.8 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.02475, allocations: 352.2 kB / 276.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.02478, allocations: 29.7 kB / 276.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.02502, allocations: 262.7 kB / 276.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.02507, allocations: 43.69 kB / 276.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.02519, allocations: 63.59 kB / 276.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002977/0.02549, allocations: 0.5118 MB / 277.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.02576, allocations: 105.8 kB / 277.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004712/0.02623, allocations: 316.5 kB / 277.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006189/0.02685, allocations: 328.6 kB / 278 MB, free: 11.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.02685, allocations: 4 kB / 278 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001016/0.02787, allocations: 420.4 kB / 278.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.02791, allocations: 29.7 kB / 278.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.02792, allocations: 4 kB / 278.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000493/0.02841, allocations: 91.69 kB / 278.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.02861, allocations: 47.91 kB / 278.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.0312, allocations: 2.049 MB / 280.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.03148, allocations: 43.77 kB / 280.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.03151, allocations: 12 kB / 280.7 MB, free: 8.734 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.0317, allocations: 192.5 kB / 280.9 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.03175, allocations: 27.83 kB / 280.9 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.376e-05/0.03181, allocations: 29.78 kB / 280.9 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.03181, allocations: 3.984 kB / 280.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.03182, allocations: 0 / 280.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.03182, allocations: 0 / 280.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003067/0.03213, allocations: 244.5 kB / 281.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.03213, allocations: 0 / 281.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.048e-05/0.03222, allocations: 15.98 kB / 281.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.03261, allocations: 87.62 kB / 281.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.03263, allocations: 11.86 kB / 281.3 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002348/0.03498, allocations: 2.045 MB / 283.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.03498, allocations: 0 / 283.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007924/0.03577, allocations: 280.2 kB / 283.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.278e-05/0.03586, allocations: 39.77 kB / 283.6 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.0359, allocations: 7.938 kB / 283.6 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.03609, allocations: 15.98 kB / 283.7 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.198e-05/0.03618, allocations: 27.95 kB / 283.7 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.03619, allocations: 4 kB / 283.7 MB, free: 5.516 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002434/0.03644, allocations: 233.1 kB / 283.9 MB, free: 5.289 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03644, allocations: 3.938 kB / 283.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003573/0.0368, allocations: 83.89 kB / 284 MB, free: 5.203 MB / 266.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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001409/0.03694, allocations: 103.2 kB / 284.1 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009517/0.03789, allocations: 482.9 kB / 284.6 MB, free: 4.582 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.03789, allocations: 4.25 kB / 284.6 MB, free: 4.578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004549/0.03835, allocations: 285.4 kB / 284.9 MB, free: 4.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.03863, allocations: 39.48 kB / 284.9 MB, free: 4.242 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000945/0.03958, allocations: 455 kB / 285.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.03974, allocations: 146.8 kB / 285.5 MB, free: 3.602 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.529e-05/0.03983, allocations: 30.27 kB / 285.5 MB, free: 3.574 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.322e-05/0.03989, allocations: 24.5 kB / 285.5 MB, free: 3.551 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.0399, allocations: 0 / 285.5 MB, free: 3.551 MB / 266.7 MB Notification: Performance of Templates: time 0.009104/0.049, allocations: 4.078 MB / 289.6 MB, free: 15.53 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.646977836033329]