Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.002441/0.002441, 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.00274/0.00274, allocations: 153.5 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.616/1.616, allocations: 173.4 MB / 200.8 MB, free: 9.312 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.OpAmps.Comparator,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.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,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.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 267.4 MB, free: 6.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.425e-05/4.623e-05, allocations: 6.25 kB / 267.4 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.006541/0.006587, allocations: 2.842 MB / 270.2 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.008509, allocations: 0.6816 MB / 270.9 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.00871, allocations: 11.94 kB / 270.9 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.008963, allocations: 55.5 kB / 271 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.00929, allocations: 99.12 kB / 271.1 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.009705, allocations: 115.7 kB / 271.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007069/0.01041, allocations: 402.3 kB / 271.6 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.01069, allocations: 96.44 kB / 271.7 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004444/0.01114, allocations: 223.5 kB / 271.9 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.01146, allocations: 135.6 kB / 272 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.405e-05/0.01156, allocations: 36 kB / 272 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.551e-05/0.01165, allocations: 36 kB / 272.1 MB, free: 1.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.01178, allocations: 79.67 kB / 272.2 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.01201, allocations: 127.7 kB / 272.3 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007655/0.01278, allocations: 406.7 kB / 272.7 MB, free: 1.348 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.01278, allocations: 0 / 272.7 MB, free: 1.348 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.01278, allocations: 0 / 272.7 MB, free: 1.348 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.01279, allocations: 0 / 272.7 MB, free: 1.348 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001857/0.01465, allocations: 0.7049 MB / 273.4 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.0147, allocations: 12.86 kB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.01489, allocations: 56.7 kB / 273.4 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005789/0.01547, allocations: 248 kB / 273.7 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.877e-05/0.0155, allocations: 24.81 kB / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.438e-05/0.01557, allocations: 24.38 kB / 273.7 MB, free: 216 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009403/0.01651, allocations: 312.9 kB / 274 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.01652, allocations: 192 / 274 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.968e-05/0.01657, allocations: 12.38 kB / 274.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.0166, allocations: 11.94 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009023/0.0175, allocations: 237.8 kB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.02018, allocations: 1.127 MB / 275.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/0.02102, allocations: 171 kB / 275.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.02134, allocations: 67.66 kB / 275.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.02138, allocations: 7.984 kB / 275.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005202/0.0219, allocations: 156.5 kB / 275.8 MB, free: 14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.0219, allocations: 0 / 275.8 MB, free: 14 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.001408/0.02331, allocations: 277.1 kB / 276.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/0.02339, allocations: 85.11 kB / 276.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006387/0.02403, allocations: 392.1 kB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.02406, allocations: 25.7 kB / 276.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.02435, allocations: 270.6 kB / 276.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/0.02441, allocations: 35.8 kB / 276.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.02458, allocations: 67.53 kB / 276.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003692/0.02495, allocations: 0.5118 MB / 277.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.02535, allocations: 109.9 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/0.02594, allocations: 284.7 kB / 277.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008716/0.02682, allocations: 343.6 kB / 278.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.02682, allocations: 0 / 278.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00121/0.02803, allocations: 400.6 kB / 278.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.362e-05/0.02809, allocations: 37.69 kB / 278.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.02811, allocations: 8.031 kB / 278.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004313/0.02854, allocations: 51.59 kB / 278.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.02887, allocations: 55.89 kB / 278.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.03094, allocations: 1.802 MB / 280.5 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.03134, allocations: 35.83 kB / 280.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.03138, allocations: 16 kB / 280.6 MB, free: 8.852 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002779/0.03166, allocations: 200.4 kB / 280.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.03173, allocations: 27.98 kB / 280.8 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.607e-05/0.0318, allocations: 25.77 kB / 280.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.0318, allocations: 0 / 280.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.03181, allocations: 4 kB / 280.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.03181, allocations: 0 / 280.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007811/0.03259, allocations: 456.9 kB / 281.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.0326, allocations: 4 kB / 281.3 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.03276, allocations: 15.98 kB / 281.3 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003046/0.03306, allocations: 51.67 kB / 281.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.03308, allocations: 4 kB / 281.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.03502, allocations: 1.795 MB / 283.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.03502, allocations: 4.125 kB / 283.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.03586, allocations: 247.5 kB / 283.4 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.03595, allocations: 31.73 kB / 283.4 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.95e-05/0.036, allocations: 3.984 kB / 283.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.03626, allocations: 15.98 kB / 283.4 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.03637, allocations: 23.91 kB / 283.5 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.03639, allocations: 8 kB / 283.5 MB, free: 5.738 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003863/0.03678, allocations: 253.1 kB / 283.7 MB, free: 5.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03678, allocations: 0 / 283.7 MB, free: 5.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006234/0.0374, allocations: 75.84 kB / 283.8 MB, free: 5.418 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001963/0.0376, allocations: 95.25 kB / 283.9 MB, free: 5.312 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.03887, allocations: 470.7 kB / 284.3 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.03888, allocations: 4 kB / 284.3 MB, free: 4.809 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006034/0.03948, allocations: 257.4 kB / 284.6 MB, free: 4.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.03997, allocations: 61.27 kB / 284.7 MB, free: 4.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.04125, allocations: 474.6 kB / 285.1 MB, free: 3.984 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.04141, allocations: 146.9 kB / 285.3 MB, free: 3.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.04153, allocations: 30.28 kB / 285.3 MB, free: 3.789 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.753e-05/0.04161, allocations: 20.5 kB / 285.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.04161, allocations: 4 kB / 285.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of Templates: time 0.008301/0.04991, allocations: 3.248 MB / 288.6 MB, free: 0.5625 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.5191468060947955]