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.0009597/0.0009597, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.001008/0.001008, allocations: 144.5 kB / 24.89 MB, free: 8.238 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 1.03/1.03, allocations: 173.3 MB / 201.5 MB, free: 9.164 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.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.483e-06/1.483e-06, allocations: 0 / 268.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045e-05/1.193e-05, allocations: 2.312 kB / 268.5 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002754/0.002766, allocations: 2.908 MB / 271.5 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.003926, allocations: 0.7086 MB / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.004051, allocations: 4 kB / 272.2 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.004183, allocations: 55.44 kB / 272.2 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.004336, allocations: 107.1 kB / 272.3 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.004619, allocations: 115.7 kB / 272.4 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.004921, allocations: 402.3 kB / 272.8 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.005065, allocations: 91.11 kB / 272.9 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.005256, allocations: 223.5 kB / 273.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.005402, allocations: 135.6 kB / 273.3 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.005447, allocations: 40 kB / 273.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.158e-05/0.005479, allocations: 36 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.217e-05/0.005531, allocations: 79.67 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.5e-05/0.005616, allocations: 123.7 kB / 273.5 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.005853, allocations: 251.1 kB / 273.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.005855, allocations: 0 / 273.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005856, allocations: 0 / 273.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.005861, allocations: 0 / 273.8 MB, free: 0.8047 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.0007341/0.006595, allocations: 0.5726 MB / 274.4 MB, free: 204 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.006626, allocations: 8.922 kB / 274.4 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.006683, allocations: 40.91 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.006906, allocations: 189.9 kB / 274.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.006924, allocations: 24.86 kB / 274.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.006947, allocations: 24.38 kB / 274.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.007214, allocations: 239.9 kB / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.007225, allocations: 4.188 kB / 274.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.007241, allocations: 11.75 kB / 274.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.007249, allocations: 8 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.81e-05/0.007347, allocations: 67.45 kB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007945/0.008141, allocations: 0.8102 MB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.008284, allocations: 66.48 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.976e-05/0.008314, allocations: 20.84 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.008328, allocations: 4 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/0.008445, allocations: 100.9 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.008446, allocations: 0 / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002537/0.0087, allocations: 122.5 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.008737, allocations: 85.05 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.008885, allocations: 260.8 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.008901, allocations: 29.7 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.008979, allocations: 200.3 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.009001, allocations: 43.67 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.95e-05/0.00906, allocations: 49.91 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.009133, allocations: 334.8 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.849e-05/0.009182, allocations: 50.05 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.425e-05/0.009266, allocations: 168.7 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.009403, allocations: 215.2 kB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.009406, allocations: 4 kB / 277.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002093/0.009615, allocations: 241.6 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.009642, allocations: 37.64 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.009647, allocations: 4 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.009812, allocations: 45.19 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.009924, allocations: 59.91 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005439/0.01047, allocations: 1.162 MB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.01059, allocations: 39.94 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.0106, allocations: 15.98 kB / 279.1 MB, free: 11.02 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 7.372e-05/0.01068, allocations: 125.7 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.0107, allocations: 19.98 kB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.406e-05/0.01072, allocations: 25.77 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.01072, allocations: 0 / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.01073, allocations: 3.984 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01073, allocations: 0 / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.01092, allocations: 263.5 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01092, allocations: 4.031 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.451e-05/0.01098, allocations: 35.84 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.01108, allocations: 32.83 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.01109, allocations: 0 / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004924/0.01158, allocations: 1.178 MB / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01158, allocations: 0 / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.0117, allocations: 122.7 kB / 280.9 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.01172, allocations: 15.86 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.01173, allocations: 4 kB / 280.9 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-05/0.0118, allocations: 20.05 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.01184, allocations: 19.97 kB / 280.9 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.01184, allocations: 0 / 280.9 MB, free: 9.016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.1e-05/0.01191, allocations: 94.75 kB / 281 MB, free: 8.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01191, allocations: 0 / 281 MB, free: 8.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001787/0.01208, allocations: 75.84 kB / 281.1 MB, free: 8.852 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 7.79e-05/0.01216, allocations: 76.42 kB / 281.2 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.01244, allocations: 308.6 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.01245, allocations: 0 / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.01255, allocations: 147.5 kB / 281.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.01269, allocations: 45.81 kB / 281.7 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000605/0.0133, allocations: 446 kB / 282.1 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.315e-05/0.01334, allocations: 80.31 kB / 282.2 MB, free: 7.664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.072e-05/0.01341, allocations: 34.28 kB / 282.2 MB, free: 7.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.01352, allocations: 95.34 kB / 282.3 MB, free: 7.535 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01352, allocations: 0 / 282.3 MB, free: 7.535 MB / 266.7 MB Notification: Performance of Templates: time 0.004763/0.01828, allocations: 3.376 MB / 285.7 MB, free: 4.223 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 -s gbode -gbm=radauIIA3 -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","",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.7770305359736085]