Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 88 kB / 21.44 MB, free: 276 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 160.9 kB / 24.7 MB, free: 3.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 158.6 MB / 186.5 MB, free: 6.391 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 299 MB, free: 8.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/2.98e-05, allocations: 2.281 kB / 299 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00407/0.0041, allocations: 2.649 MB / 301.6 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.00561, allocations: 0.7254 MB / 302.4 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.005774, allocations: 7.938 kB / 302.4 MB, free: 5.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.005948, allocations: 47.5 kB / 302.4 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.006173, allocations: 111.1 kB / 302.5 MB, free: 5.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.006492, allocations: 111.7 kB / 302.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004665/0.006959, allocations: 402.3 kB / 303 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.00717, allocations: 100.3 kB / 303.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.007451, allocations: 227.4 kB / 303.3 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.00765, allocations: 123.7 kB / 303.5 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.596e-05/0.007716, allocations: 36 kB / 303.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.313e-05/0.00778, allocations: 40 kB / 303.5 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.463e-05/0.007874, allocations: 83.66 kB / 303.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.008032, allocations: 123.7 kB / 303.7 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004693/0.008501, allocations: 402.7 kB / 304.1 MB, free: 3.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.008506, allocations: 3.938 kB / 304.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.008507, allocations: 0 / 304.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.008513, allocations: 0 / 304.1 MB, free: 3.504 MB / 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.001367/0.00988, allocations: 0.613 MB / 304.7 MB, free: 2.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.009917, allocations: 8.031 kB / 304.8 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.01, allocations: 36.7 kB / 304.8 MB, free: 2.809 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.01044, allocations: 241.1 kB / 305 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.01046, allocations: 20.88 kB / 305 MB, free: 2.527 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.01051, allocations: 24.38 kB / 305.1 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006693/0.01118, allocations: 284.5 kB / 305.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.01119, allocations: 192 / 305.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.01122, allocations: 12.38 kB / 305.4 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.01123, allocations: 11.94 kB / 305.4 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008384/0.01207, allocations: 285.7 kB / 305.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.01374, allocations: 0.8822 MB / 306.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007417/0.01448, allocations: 190.6 kB / 306.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.01477, allocations: 84.78 kB / 306.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.0148, allocations: 0 / 306.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004256/0.01523, allocations: 160.9 kB / 307 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.01523, allocations: 0 / 307 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001222/0.01645, allocations: 306.2 kB / 307.3 MB, free: 208 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.01651, allocations: 89.05 kB / 307.3 MB, free: 100 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.01687, allocations: 293.7 kB / 307.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.01689, allocations: 26.08 kB / 307.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.01705, allocations: 207.9 kB / 307.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.01709, allocations: 39.69 kB / 307.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.922e-05/0.01719, allocations: 53.92 kB / 308 MB, free: 15.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.01736, allocations: 338.8 kB / 308.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.01772, allocations: 131.2 kB / 308.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.01813, allocations: 223.8 kB / 308.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/0.01884, allocations: 319.1 kB / 308.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01884, allocations: 0 / 308.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009543/0.01979, allocations: 417.4 kB / 309.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.01984, allocations: 33.7 kB / 309.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.01985, allocations: 7.938 kB / 309.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001881/0.02003, allocations: 41.14 kB / 309.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.0203, allocations: 59.89 kB / 309.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.02148, allocations: 1.272 MB / 310.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.02179, allocations: 44.02 kB / 310.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.02182, allocations: 12 kB / 310.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003978/0.02222, allocations: 210 kB / 311 MB, free: 12.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004061/0.02262, allocations: 219.8 kB / 311.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006139/0.02324, allocations: 299.1 kB / 311.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.02324, allocations: 0 / 311.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0008913/0.02413, allocations: 401.3 kB / 311.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.02417, allocations: 40.52 kB / 312 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.02417, allocations: 4 kB / 312 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/0.02428, allocations: 29.19 kB / 312 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.02451, allocations: 59.89 kB / 312 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.02564, allocations: 1.272 MB / 313.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.02591, allocations: 31.88 kB / 313.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.02594, allocations: 12.16 kB / 313.4 MB, free: 9.543 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001893/0.02613, allocations: 204.2 kB / 313.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.02617, allocations: 19.86 kB / 313.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.195e-05/0.02622, allocations: 29.77 kB / 313.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.02623, allocations: 7.938 kB / 313.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.02623, allocations: 0 / 313.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.02623, allocations: 0 / 313.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004489/0.02668, allocations: 358.8 kB / 314 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.02669, allocations: 3.984 kB / 314 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.02685, allocations: 32 kB / 314 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.731e-05/0.02694, allocations: 28.78 kB / 314 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.02696, allocations: 8 kB / 314 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.02805, allocations: 1.257 MB / 315.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.02805, allocations: 4.031 kB / 315.3 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.02875, allocations: 258.4 kB / 315.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.02879, allocations: 27.78 kB / 315.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.02883, allocations: 7.938 kB / 315.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.02903, allocations: 28.06 kB / 315.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.02913, allocations: 23.91 kB / 315.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.02914, allocations: 0 / 315.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.02935, allocations: 201.2 kB / 315.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02935, allocations: 0 / 315.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.02988, allocations: 135.7 kB / 316 MB, free: 6.758 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 (10): * Single equations (assignments): 7 * 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.0001768/0.03006, allocations: 103.2 kB / 316.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.03162, allocations: 0.7306 MB / 316.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.03162, allocations: 0 / 316.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004598/0.03208, allocations: 211.3 kB / 317 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.03243, allocations: 40.47 kB / 317 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.03352, allocations: 460.6 kB / 317.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.03367, allocations: 151.1 kB / 317.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.0338, allocations: 42.27 kB / 317.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.859e-05/0.03388, allocations: 28.48 kB / 317.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.03388, allocations: 0 / 317.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of Templates: time 0.008747/0.04263, allocations: 3.645 MB / 321.4 MB, free: 1.238 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.296409368515015]