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.001189/0.001189, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.00113/0.00113, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9729/0.9729, allocations: 173.4 MB / 201.2 MB, free: 9.344 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.153e-06/1.153e-06, allocations: 0 / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.416e-05, allocations: 6.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002916/0.00293, allocations: 2.884 MB / 270.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009156/0.003846, allocations: 0.6894 MB / 271.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.003965, allocations: 7.938 kB / 271.6 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.00411, allocations: 51.5 kB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.004256, allocations: 103.1 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.004518, allocations: 119.7 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.004851, allocations: 402.3 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.005015, allocations: 92.48 kB / 272.4 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.005216, allocations: 219.5 kB / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.005367, allocations: 135.6 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/0.005412, allocations: 36 kB / 272.8 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.005449, allocations: 36 kB / 272.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.0055, allocations: 79.67 kB / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.195e-05/0.005592, allocations: 131.6 kB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.005841, allocations: 243.1 kB / 273.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.005843, allocations: 4 kB / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.005844, allocations: 0 / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.005848, allocations: 0 / 273.2 MB, free: 1.176 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.0007861/0.006634, allocations: 0.6818 MB / 273.9 MB, free: 460 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.006666, allocations: 12.92 kB / 273.9 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.006748, allocations: 60.7 kB / 274 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.006999, allocations: 235.9 kB / 274.2 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.007017, allocations: 16.88 kB / 274.2 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.007044, allocations: 28.31 kB / 274.3 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003652/0.007409, allocations: 257.6 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.007419, allocations: 4.188 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.007439, allocations: 12.36 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.00745, allocations: 11.94 kB / 274.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.007618, allocations: 102.9 kB / 274.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000979/0.008596, allocations: 1.033 MB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.0088, allocations: 83.14 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.619e-05/0.008846, allocations: 27.69 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.87e-05/0.008865, allocations: 4.172 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.008997, allocations: 112.3 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.008998, allocations: 0 / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000383/0.009381, allocations: 169.1 kB / 276.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.009418, allocations: 81.11 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.009629, allocations: 332.1 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002702/0.0099, allocations: 29.7 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.01, allocations: 262.6 kB / 276.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.01003, allocations: 35.73 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.275e-05/0.01009, allocations: 59.55 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.01021, allocations: 0.5001 MB / 277.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/0.01029, allocations: 57.91 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.01042, allocations: 220.8 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.0106, allocations: 256.1 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.0106, allocations: 0 / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003089/0.01091, allocations: 304 kB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.01094, allocations: 33.7 kB / 278.2 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.01094, allocations: 4 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.01115, allocations: 55.83 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.01127, allocations: 55.91 kB / 278.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007765/0.01205, allocations: 1.744 MB / 280.1 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.01219, allocations: 35.83 kB / 280.1 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.01221, allocations: 20.12 kB / 280.1 MB, free: 9.703 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 9.54e-05/0.01231, allocations: 176.3 kB / 280.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.105e-05/0.01234, allocations: 35.84 kB / 280.3 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.01236, allocations: 17.78 kB / 280.3 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.01236, allocations: 4 kB / 280.3 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.01237, allocations: 3.984 kB / 280.3 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01237, allocations: 0 / 280.3 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.01264, allocations: 409 kB / 280.7 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01264, allocations: 0 / 280.7 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.0127, allocations: 31.98 kB / 280.8 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.01282, allocations: 39.59 kB / 280.8 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.01283, allocations: 4 kB / 280.8 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006792/0.01351, allocations: 1.748 MB / 282.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01351, allocations: 0 / 282.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.0137, allocations: 171.6 kB / 282.7 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.49e-05/0.01372, allocations: 23.78 kB / 282.8 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.01374, allocations: 8 kB / 282.8 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.419e-05/0.01382, allocations: 15.98 kB / 282.8 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.01388, allocations: 20.09 kB / 282.8 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.01388, allocations: 4 kB / 282.8 MB, free: 6.793 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.01401, allocations: 221.1 kB / 283 MB, free: 6.578 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01401, allocations: 0 / 283 MB, free: 6.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002429/0.01425, allocations: 79.83 kB / 283.1 MB, free: 6.5 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 8.418e-05/0.01434, allocations: 99.19 kB / 283.2 MB, free: 6.391 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007153/0.01505, allocations: 366.7 kB / 283.6 MB, free: 5.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01505, allocations: 0 / 283.6 MB, free: 5.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.01521, allocations: 217.5 kB / 283.8 MB, free: 5.758 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.01542, allocations: 45.81 kB / 283.8 MB, free: 5.715 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007085/0.01613, allocations: 442.6 kB / 284.2 MB, free: 5.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.618e-05/0.01618, allocations: 88.31 kB / 284.3 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.087e-05/0.01625, allocations: 26.3 kB / 284.4 MB, free: 5.117 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.0163, allocations: 32.48 kB / 284.4 MB, free: 5.082 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0163, allocations: 0 / 284.4 MB, free: 5.082 MB / 266.7 MB Notification: Performance of Templates: time 0.005332/0.02164, allocations: 3.423 MB / 287.8 MB, free: 1.711 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","",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.668987870682031]