Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008228/0.0008228, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004325/0.004325, allocations: 160.7 kB / 24.7 MB, free: 9.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8255/0.8255, allocations: 177.2 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 325.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.493e-05, allocations: 2.281 kB / 325.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003011/0.003036, allocations: 2.72 MB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000981/0.004017, allocations: 0.7167 MB / 329.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.004162, allocations: 7.938 kB / 329.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.004327, allocations: 51.45 kB / 329.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.004488, allocations: 107.2 kB / 329.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.004771, allocations: 111.7 kB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.005098, allocations: 402.3 kB / 330 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.005286, allocations: 92.39 kB / 330.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.005473, allocations: 227.5 kB / 330.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.005609, allocations: 119.7 kB / 330.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.46e-05/0.005654, allocations: 39.94 kB / 330.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.196e-05/0.005686, allocations: 40 kB / 330.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.716e-05/0.005743, allocations: 79.72 kB / 330.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.754e-05/0.005841, allocations: 115.7 kB / 330.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.006183, allocations: 410.6 kB / 331.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.006187, allocations: 3.984 kB / 331.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006188, allocations: 0 / 331.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.006194, allocations: 0 / 331.1 MB, free: 10.17 MB / 298.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.0008991/0.007093, allocations: 0.6201 MB / 331.7 MB, free: 9.516 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.007136, allocations: 8.031 kB / 331.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.321e-05/0.007199, allocations: 36.7 kB / 331.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.007512, allocations: 233.2 kB / 332 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.00753, allocations: 16.88 kB / 332 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.007557, allocations: 32.31 kB / 332 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.00798, allocations: 315.2 kB / 332.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.007991, allocations: 192 / 332.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.008013, allocations: 12.38 kB / 332.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.008023, allocations: 15.86 kB / 332.4 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.008451, allocations: 273.8 kB / 332.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.009593, allocations: 0.9604 MB / 333.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.01006, allocations: 210.5 kB / 333.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.01021, allocations: 84.8 kB / 333.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.01023, allocations: 0 / 333.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.01051, allocations: 157.1 kB / 334 MB, free: 7.051 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.01051, allocations: 4 kB / 334 MB, free: 7.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.000735/0.01125, allocations: 330.2 kB / 334.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.0113, allocations: 84.98 kB / 334.4 MB, free: 6.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.01151, allocations: 301.6 kB / 334.7 MB, free: 6.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.01153, allocations: 29.7 kB / 334.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.01164, allocations: 215.9 kB / 335 MB, free: 6.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.01166, allocations: 35.69 kB / 335 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.519e-05/0.01173, allocations: 53.92 kB / 335.1 MB, free: 5.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.01183, allocations: 338.8 kB / 335.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.01203, allocations: 125.9 kB / 335.5 MB, free: 5.496 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.01227, allocations: 236.7 kB / 335.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.01266, allocations: 331.9 kB / 336.1 MB, free: 4.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01267, allocations: 0 / 336.1 MB, free: 4.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005383/0.0132, allocations: 429.7 kB / 336.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.01324, allocations: 33.7 kB / 336.5 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.01325, allocations: 4 kB / 336.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.0134, allocations: 36.77 kB / 336.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.01353, allocations: 63.89 kB / 336.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000775/0.01431, allocations: 1.276 MB / 337.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.01446, allocations: 51.75 kB / 338 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.01448, allocations: 15.94 kB / 338 MB, free: 2.793 MB / 298.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.0001096/0.01459, allocations: 145.9 kB / 338.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.01461, allocations: 31.78 kB / 338.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.01464, allocations: 25.78 kB / 338.2 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.01464, allocations: 0 / 338.2 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.01464, allocations: 7.984 kB / 338.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01465, allocations: 0 / 338.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.01492, allocations: 346.9 kB / 338.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01492, allocations: 0 / 338.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.677e-05/0.01501, allocations: 35.95 kB / 338.5 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-05/0.01509, allocations: 32.75 kB / 338.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.0151, allocations: 4 kB / 338.6 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006053/0.01571, allocations: 1.26 MB / 339.8 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.01571, allocations: 4.094 kB / 339.8 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.01607, allocations: 270.5 kB / 340.1 MB, free: 476 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/0.0161, allocations: 27.78 kB / 340.1 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.01612, allocations: 4 kB / 340.1 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.239e-05/0.01621, allocations: 23.97 kB / 340.2 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.01626, allocations: 19.97 kB / 340.2 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.01627, allocations: 8 kB / 340.2 MB, free: 392 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.0164, allocations: 197.2 kB / 340.4 MB, free: 192 kB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0164, allocations: 0 / 340.4 MB, free: 192 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002127/0.01661, allocations: 75.84 kB / 340.5 MB, free: 116 kB / 298.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.0001083/0.01672, allocations: 106.1 kB / 340.6 MB, free: 4 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005801/0.0173, allocations: 431.8 kB / 341 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.0173, allocations: 0 / 341 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.01755, allocations: 214.5 kB / 341.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.01778, allocations: 57.52 kB / 341.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006816/0.01847, allocations: 485.7 kB / 341.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.886e-05/0.01855, allocations: 150.9 kB / 341.9 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.998e-05/0.01861, allocations: 20.5 kB / 341.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01861, allocations: 0 / 341.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Templates: time 0.004541/0.02316, allocations: 4.603 MB / 346.5 MB, free: 9.98 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.3295442732051015]