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.001059/0.001059, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001713/0.002772, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009734/0.0009734, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001485/0.002459, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.87/0.87, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1667/1.037, allocations: 52.49 MB / 238.5 MB, free: 7.629 MB / 234.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.352e-06/1.352e-06, allocations: 0 / 239.8 MB, free: 6.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.705e-05, allocations: 2.312 kB / 239.8 MB, free: 6.32 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.009526/0.009543, allocations: 2.915 MB / 242.7 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.01064, allocations: 0.7121 MB / 243.4 MB, free: 2.695 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.01077, allocations: 4 kB / 243.4 MB, free: 2.691 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.01088, allocations: 51.5 kB / 243.5 MB, free: 2.641 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.01105, allocations: 108.2 kB / 243.6 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.01126, allocations: 112.8 kB / 243.7 MB, free: 2.426 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.01164, allocations: 407.2 kB / 244.1 MB, free: 2.027 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.01181, allocations: 91.08 kB / 244.2 MB, free: 1.934 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002906/0.0121, allocations: 270 kB / 244.4 MB, free: 1.668 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003186/0.01529, allocations: 135.6 kB / 244.6 MB, free: 1.535 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-05/0.01534, allocations: 36.69 kB / 244.6 MB, free: 1.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.984e-05/0.01539, allocations: 36 kB / 244.6 MB, free: 1.465 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.605e-05/0.01545, allocations: 56.5 kB / 244.7 MB, free: 1.41 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.742e-05/0.01555, allocations: 95.81 kB / 244.8 MB, free: 1.316 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.01582, allocations: 227.9 kB / 245 MB, free: 1.094 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.01583, allocations: 0 / 245 MB, free: 1.094 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.01583, allocations: 2.5 kB / 245 MB, free: 1.094 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.01585, allocations: 0 / 245 MB, free: 1.094 MB / 234.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.0008735/0.01672, allocations: 0.6245 MB / 245.6 MB, free: 448 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.01675, allocations: 8.844 kB / 245.6 MB, free: 440 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.01682, allocations: 44.91 kB / 245.7 MB, free: 396 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.01706, allocations: 190.3 kB / 245.9 MB, free: 180 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.01708, allocations: 20.88 kB / 245.9 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.01711, allocations: 31.48 kB / 245.9 MB, free: 132 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.01747, allocations: 247.9 kB / 246.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.01748, allocations: 192 / 246.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.0175, allocations: 16.31 kB / 246.2 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.01751, allocations: 7.938 kB / 246.2 MB, free: 15.85 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.01764, allocations: 67.47 kB / 246.3 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004034/0.02167, allocations: 0.8174 MB / 247.1 MB, free: 14.92 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.02185, allocations: 73.16 kB / 247.1 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.579e-05/0.02189, allocations: 16.86 kB / 247.2 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.02191, allocations: 4 kB / 247.2 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/0.02204, allocations: 96.98 kB / 247.3 MB, free: 14.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.02204, allocations: 0.8438 kB / 247.3 MB, free: 14.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003042/0.02235, allocations: 121 kB / 247.4 MB, free: 14.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.02239, allocations: 81.11 kB / 247.5 MB, free: 14.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.02257, allocations: 264.8 kB / 247.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.02259, allocations: 33.7 kB / 247.7 MB, free: 14.17 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.566e-05/0.02268, allocations: 196.4 kB / 247.9 MB, free: 13.97 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.02271, allocations: 40.17 kB / 248 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.147e-05/0.02278, allocations: 50.75 kB / 248 MB, free: 13.88 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.924e-05/0.02287, allocations: 338.8 kB / 248.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.816e-05/0.02293, allocations: 47.55 kB / 248.4 MB, free: 13.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.02304, allocations: 165.2 kB / 248.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.02323, allocations: 223.8 kB / 248.8 MB, free: 12.99 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.02323, allocations: 4 kB / 248.8 MB, free: 12.99 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002758/0.02351, allocations: 234 kB / 249 MB, free: 12.74 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.02354, allocations: 33.7 kB / 249 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.02355, allocations: 8.031 kB / 249.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.02374, allocations: 44.75 kB / 249.1 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.0239, allocations: 71.83 kB / 249.2 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003672/0.02757, allocations: 1.174 MB / 250.3 MB, free: 11.31 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.02774, allocations: 35.88 kB / 250.4 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.02776, allocations: 15.94 kB / 250.4 MB, free: 11.26 MB / 250.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.29e-05/0.02785, allocations: 129.7 kB / 250.5 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.02788, allocations: 24.05 kB / 250.5 MB, free: 11.1 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.02791, allocations: 25.77 kB / 250.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.02791, allocations: 0 / 250.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.02791, allocations: 4 kB / 250.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.02792, allocations: 0 / 250.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.02816, allocations: 263.5 kB / 250.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.02816, allocations: 4 kB / 250.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.02823, allocations: 23.98 kB / 250.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.02826, allocations: 27.73 kB / 250.9 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.02839, allocations: 40.84 kB / 250.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.0284, allocations: 4 kB / 250.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005624/0.02897, allocations: 1.163 MB / 252.1 MB, free: 9.441 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.02897, allocations: 0 / 252.1 MB, free: 9.441 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.02912, allocations: 126.7 kB / 252.2 MB, free: 9.293 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.02914, allocations: 4 kB / 252.2 MB, free: 9.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.798e-05/0.02923, allocations: 11.98 kB / 252.2 MB, free: 9.277 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.02928, allocations: 19.91 kB / 252.3 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.02929, allocations: 4 kB / 252.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.354e-05/0.02937, allocations: 86.77 kB / 252.3 MB, free: 9.164 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02937, allocations: 0 / 252.3 MB, free: 9.164 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002594/0.02963, allocations: 83.91 kB / 252.4 MB, free: 9.082 MB / 250.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.928e-05/0.02972, allocations: 80.41 kB / 252.5 MB, free: 8.996 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003332/0.03305, allocations: 301.3 kB / 252.8 MB, free: 8.668 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/0.03307, allocations: 4.469 kB / 252.8 MB, free: 8.664 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.03321, allocations: 163.4 kB / 253 MB, free: 8.488 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.03353, allocations: 408.8 kB / 253.4 MB, free: 8.016 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.03516, allocations: 466.1 kB / 253.8 MB, free: 7.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.158e-05/0.03522, allocations: 80.31 kB / 253.9 MB, free: 7.426 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.965e-05/0.03532, allocations: 26.3 kB / 253.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.03545, allocations: 95.34 kB / 254 MB, free: 7.309 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/0.03545, allocations: 4 kB / 254 MB, free: 7.305 MB / 250.7 MB Notification: Performance of Templates: time 0.00695/0.0424, allocations: 3.396 MB / 257.4 MB, free: 3.973 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5273614851757884]