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.002183/0.002183, allocations: 88.62 kB / 20.95 MB, free: 3.477 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.002624/0.002624, allocations: 145.5 kB / 24.26 MB, free: 184 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.544/1.544, allocations: 173.3 MB / 200.8 MB, free: 9.316 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 2.264e-06/2.264e-06, allocations: 0 / 267.4 MB, free: 6.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.113e-05/3.339e-05, allocations: 2.312 kB / 267.4 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.007219/0.007253, allocations: 2.709 MB / 270.1 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.009453, allocations: 0.6699 MB / 270.7 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.009747, allocations: 7.938 kB / 270.7 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.01003, allocations: 47.52 kB / 270.8 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004485/0.01048, allocations: 115.1 kB / 270.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.01095, allocations: 111.7 kB / 271 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008289/0.01178, allocations: 402.3 kB / 271.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003342/0.01211, allocations: 100.4 kB / 271.5 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005728/0.01269, allocations: 211.5 kB / 271.7 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.01311, allocations: 131.6 kB / 271.8 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.01325, allocations: 36 kB / 271.9 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.01338, allocations: 40 kB / 271.9 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.01353, allocations: 79.67 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.01388, allocations: 123.7 kB / 272.1 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008785/0.01475, allocations: 406.7 kB / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.01476, allocations: 0 / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.01476, allocations: 0 / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.01478, allocations: 0 / 272.5 MB, free: 1.508 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.00245/0.01723, allocations: 0.6053 MB / 273.1 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.449e-05/0.01729, allocations: 12.92 kB / 273.1 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.01752, allocations: 64.62 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/0.0182, allocations: 245.1 kB / 273.4 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.01824, allocations: 16.88 kB / 273.4 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.0183, allocations: 24.38 kB / 273.5 MB, free: 492 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.01949, allocations: 315.2 kB / 273.8 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.01951, allocations: 192 / 273.8 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.01956, allocations: 12.38 kB / 273.8 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.01957, allocations: 7.938 kB / 273.8 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.02103, allocations: 277.8 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.02412, allocations: 0.9761 MB / 275 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.02543, allocations: 202.6 kB / 275.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005193/0.02595, allocations: 88.78 kB / 275.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.02597, allocations: 0 / 275.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007481/0.02672, allocations: 157.1 kB / 275.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.02672, allocations: 0 / 275.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.002098/0.02882, allocations: 338.1 kB / 275.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.02893, allocations: 81.11 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005871/0.02951, allocations: 293.7 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.02956, allocations: 25.7 kB / 276.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.02986, allocations: 223.8 kB / 276.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.164e-05/0.02992, allocations: 31.78 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.03009, allocations: 53.89 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002772/0.03036, allocations: 334.8 kB / 276.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006314/0.031, allocations: 129.9 kB / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008921/0.03189, allocations: 240.6 kB / 277.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.03318, allocations: 339.4 kB / 277.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.03318, allocations: 3.938 kB / 277.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001816/0.035, allocations: 437.5 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/0.03507, allocations: 37.7 kB / 278 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.03508, allocations: 4 kB / 278 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004783/0.03556, allocations: 48.75 kB / 278 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004846/0.03604, allocations: 68.05 kB / 278.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.038, allocations: 1.276 MB / 279.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.03859, allocations: 51.97 kB / 279.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.03863, allocations: 8 kB / 279.4 MB, free: 10.07 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.0002827/0.03892, allocations: 157.6 kB / 279.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/0.03901, allocations: 23.86 kB / 279.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.758e-05/0.03909, allocations: 25.77 kB / 279.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.03909, allocations: 0 / 279.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.0391, allocations: 4 kB / 279.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.0391, allocations: 0 / 279.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007944/0.03989, allocations: 358.8 kB / 280 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.0399, allocations: 4.031 kB / 280 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.04018, allocations: 27.97 kB / 280 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003776/0.04055, allocations: 44.81 kB / 280.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.04057, allocations: 0 / 280.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/0.04278, allocations: 1.276 MB / 281.4 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.04278, allocations: 0 / 281.4 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.04407, allocations: 274.6 kB / 281.6 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.04417, allocations: 31.72 kB / 281.7 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.848e-05/0.04423, allocations: 4 kB / 281.7 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.04461, allocations: 23.97 kB / 281.7 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.04473, allocations: 19.97 kB / 281.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.04475, allocations: 12 kB / 281.7 MB, free: 7.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003783/0.04513, allocations: 197.2 kB / 281.9 MB, free: 7.434 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.04513, allocations: 0 / 281.9 MB, free: 7.434 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007092/0.04584, allocations: 75.84 kB / 282 MB, free: 7.359 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.0002209/0.04606, allocations: 107.2 kB / 282.1 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.04777, allocations: 427.4 kB / 282.5 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.04777, allocations: 1 kB / 282.5 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008358/0.04861, allocations: 218.6 kB / 282.7 MB, free: 6.566 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005747/0.04918, allocations: 48.56 kB / 282.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.05102, allocations: 478.1 kB / 283.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.05129, allocations: 146.9 kB / 283.4 MB, free: 5.863 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.05148, allocations: 26.28 kB / 283.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.05161, allocations: 28.5 kB / 283.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.05161, allocations: 0 / 283.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of Templates: time 0.0127/0.06432, allocations: 3.239 MB / 286.7 MB, free: 2.621 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=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.513578581972979]