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.001527/0.001527, allocations: 80.33 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001461/0.001461, allocations: 149.5 kB / 23.94 MB, free: 4.164 MB / 14.72 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.443/1.443, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 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 2.064e-06/2.064e-06, allocations: 0 / 319 MB, free: 3.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.851e-05, allocations: 2.281 kB / 319 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00365/0.003678, allocations: 2.696 MB / 321.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.004894, allocations: 0.6739 MB / 322.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.00505, allocations: 8.469 kB / 322.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.005237, allocations: 56.16 kB / 322.4 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.005441, allocations: 99.44 kB / 322.5 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.005756, allocations: 108.9 kB / 322.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004425/0.006199, allocations: 402.1 kB / 323 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.006404, allocations: 91.97 kB / 323.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.006688, allocations: 226.7 kB / 323.3 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.006916, allocations: 122.2 kB / 323.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.006984, allocations: 37.16 kB / 323.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.007054, allocations: 44.56 kB / 323.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.007144, allocations: 77.38 kB / 323.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.007308, allocations: 120.8 kB / 323.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.007809, allocations: 408.3 kB / 324.1 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.007813, allocations: 0 / 324.1 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.007814, allocations: 3.938 kB / 324.1 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.007821, allocations: 1.375 kB / 324.1 MB, free: 384 kB / 286.1 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.001507/0.009328, allocations: 0.6057 MB / 324.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.009379, allocations: 14.52 kB / 324.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.009499, allocations: 37.2 kB / 324.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/0.009987, allocations: 239.9 kB / 325 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.01001, allocations: 16.62 kB / 325 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.01006, allocations: 24.66 kB / 325 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.01085, allocations: 326.2 kB / 325.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.01086, allocations: 192 / 325.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.0109, allocations: 10.88 kB / 325.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.01091, allocations: 9.969 kB / 325.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008474/0.01176, allocations: 272.9 kB / 325.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.01373, allocations: 0.9671 MB / 326.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008749/0.0146, allocations: 206.5 kB / 326.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003368/0.01494, allocations: 83.3 kB / 326.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.01496, allocations: 2.438 kB / 326.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004537/0.01541, allocations: 159.7 kB / 327 MB, free: 14.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.01542, allocations: 1.094 kB / 327 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001454/0.01687, allocations: 322.9 kB / 327.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.01696, allocations: 80.62 kB / 327.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.01739, allocations: 296.3 kB / 327.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.01742, allocations: 31.95 kB / 327.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/0.01763, allocations: 225.8 kB / 328 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.01767, allocations: 35 kB / 328 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.01779, allocations: 59.66 kB / 328.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.01797, allocations: 334.8 kB / 328.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.01838, allocations: 127.7 kB / 328.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004939/0.01887, allocations: 246.6 kB / 328.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008849/0.01976, allocations: 337.9 kB / 329.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.01976, allocations: 1.375 kB / 329.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001099/0.02086, allocations: 427.6 kB / 329.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.02091, allocations: 34.73 kB / 329.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.02092, allocations: 4.125 kB / 329.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.02113, allocations: 39.3 kB / 329.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.02142, allocations: 64.94 kB / 329.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.02263, allocations: 1.262 MB / 330.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.02298, allocations: 51.45 kB / 331 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.02301, allocations: 11.77 kB / 331 MB, free: 11.55 MB / 302.1 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.0001688/0.02318, allocations: 150.8 kB / 331.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.02322, allocations: 26.66 kB / 331.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.28e-05/0.02329, allocations: 32.08 kB / 331.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.02329, allocations: 1.469 kB / 331.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.02329, allocations: 1.469 kB / 331.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.0233, allocations: 0.6094 kB / 331.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005527/0.02385, allocations: 359.7 kB / 331.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.02385, allocations: 0.7031 kB / 331.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.02404, allocations: 32.33 kB / 331.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001221/0.02416, allocations: 26.55 kB / 331.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.02418, allocations: 10.84 kB / 331.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.02536, allocations: 1.271 MB / 332.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.02536, allocations: 1.125 kB / 332.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.02619, allocations: 268.5 kB / 333.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.02625, allocations: 29.77 kB / 333.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.02629, allocations: 1.797 kB / 333.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.02653, allocations: 24.3 kB / 333.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.707e-05/0.02663, allocations: 22.14 kB / 333.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.02664, allocations: 3.141 kB / 333.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002379/0.02688, allocations: 203.5 kB / 333.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.02688, allocations: 3.938 kB / 333.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.02725, allocations: 73.09 kB / 333.5 MB, free: 9.484 MB / 302.1 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.0001462/0.02739, allocations: 101.3 kB / 333.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.02851, allocations: 432 kB / 334 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.02852, allocations: 0 / 334 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005814/0.0291, allocations: 215.3 kB / 334.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.02947, allocations: 41.78 kB / 334.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.03059, allocations: 465.9 kB / 334.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.03075, allocations: 151.4 kB / 334.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.03087, allocations: 24.86 kB / 334.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.03095, allocations: 29.17 kB / 334.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.03095, allocations: 0 / 334.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of Templates: time 0.007979/0.03893, allocations: 3.219 MB / 338.1 MB, free: 6.855 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] 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.4408557787537575]