Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.0009109/0.0009109, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001066/0.001066, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9613/0.9613, allocations: 173.3 MB / 201.5 MB, free: 9.324 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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 268.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.765e-05/1.95e-05, allocations: 2.312 kB / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004163/0.004182, allocations: 2.768 MB / 270.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.005355, allocations: 0.6582 MB / 271.5 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.005498, allocations: 7.938 kB / 271.5 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.005652, allocations: 39.64 kB / 271.6 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.005854, allocations: 95.12 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.006169, allocations: 107.8 kB / 271.8 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.006599, allocations: 362.3 kB / 272.1 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.00678, allocations: 60.89 kB / 272.2 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.007032, allocations: 195.5 kB / 272.4 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.007213, allocations: 111.6 kB / 272.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.007266, allocations: 32 kB / 272.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.628e-05/0.007312, allocations: 28 kB / 272.6 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.007376, allocations: 63.75 kB / 272.6 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.007501, allocations: 107.7 kB / 272.7 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.007831, allocations: 219.2 kB / 272.9 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.007834, allocations: 4 kB / 272.9 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007834, allocations: 0 / 272.9 MB, free: 1.816 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.007839, allocations: 0 / 272.9 MB, free: 1.816 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001021/0.00886, allocations: 0.6429 MB / 273.6 MB, free: 1.133 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.008908, allocations: 8.922 kB / 273.6 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.009019, allocations: 52.75 kB / 273.6 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.009362, allocations: 220 kB / 273.9 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.009387, allocations: 16.88 kB / 273.9 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.009425, allocations: 20.38 kB / 273.9 MB, free: 0.793 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.009886, allocations: 277.1 kB / 274.2 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.009895, allocations: 4.188 kB / 274.2 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.009914, allocations: 4.375 kB / 274.2 MB, free: 496 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.009925, allocations: 11.94 kB / 274.2 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.01008, allocations: 94.88 kB / 274.3 MB, free: 392 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009128/0.01099, allocations: 0.8702 MB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.01124, allocations: 123.1 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.658e-05/0.0113, allocations: 39.83 kB / 275.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.01133, allocations: 3.938 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.01151, allocations: 183.5 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.01151, allocations: 0 / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006994/0.01221, allocations: 312.9 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.01226, allocations: 106.8 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.01244, allocations: 296.3 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.01246, allocations: 29.7 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.01256, allocations: 230.9 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.01259, allocations: 43.59 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.01265, allocations: 55.36 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003753/0.01302, allocations: 0.5001 MB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.976e-05/0.01309, allocations: 57.67 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.01322, allocations: 211.5 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.01337, allocations: 174 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01337, allocations: 4.031 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003424/0.01371, allocations: 284.4 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.01374, allocations: 33.69 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.01375, allocations: 4.219 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.01401, allocations: 79.58 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.288e-05/0.0141, allocations: 43.91 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.01523, allocations: 2.129 MB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.01535, allocations: 39.89 kB / 280.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.01536, allocations: 11.94 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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 9.658e-05/0.01546, allocations: 176 kB / 280.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.01548, allocations: 23.86 kB / 280.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.728e-05/0.01551, allocations: 29.77 kB / 280.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.01551, allocations: 0 / 280.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.01551, allocations: 0 / 280.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01552, allocations: 4.031 kB / 280.3 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.01565, allocations: 204.5 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01565, allocations: 4 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.524e-05/0.0157, allocations: 19.98 kB / 280.5 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/0.01586, allocations: 71.77 kB / 280.6 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.01587, allocations: 11.98 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000833/0.0167, allocations: 1.877 MB / 282.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.0167, allocations: 3.938 kB / 282.5 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/0.01696, allocations: 219.2 kB / 282.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.174e-05/0.01698, allocations: 19.89 kB / 282.7 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.017, allocations: 4.188 kB / 282.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.014e-05/0.01708, allocations: 27.92 kB / 282.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.01714, allocations: 23.95 kB / 282.8 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.01715, allocations: 4 kB / 282.8 MB, free: 7.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.01725, allocations: 209.1 kB / 283 MB, free: 7 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01725, allocations: 0 / 283 MB, free: 7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.01747, allocations: 71.84 kB / 283.1 MB, free: 6.93 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 (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 8.57e-05/0.01755, allocations: 103.2 kB / 283.2 MB, free: 6.816 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.01791, allocations: 378.6 kB / 283.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.01791, allocations: 64 / 283.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.01805, allocations: 237.4 kB / 283.8 MB, free: 6.152 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.01824, allocations: 44.41 kB / 283.8 MB, free: 6.109 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009277/0.01917, allocations: 406.5 kB / 284.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.966e-05/0.01921, allocations: 88.25 kB / 284.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.738e-05/0.01927, allocations: 25.94 kB / 284.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.01931, allocations: 16.5 kB / 284.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01931, allocations: 0 / 284.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of Templates: time 0.005033/0.02434, allocations: 3.895 MB / 288.2 MB, free: 1.695 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.943852041848004]