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.001064/0.001064, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00116/0.002224, allocations: 449.7 kB / 10.37 MB, free: 332 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.0007146/0.0007146, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009439/0.001658, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9784/0.9784, allocations: 173.4 MB / 185.8 MB, free: 8.977 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09215/1.071, allocations: 52.49 MB / 238.3 MB, free: 4.422 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.453e-06/1.453e-06, allocations: 3.938 kB / 239.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.452e-05/1.597e-05, allocations: 2.312 kB / 239.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.006921/0.006937, allocations: 2.908 MB / 242.5 MB, free: 208 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.008215, allocations: 0.7048 MB / 243.2 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.008353, allocations: 4 kB / 243.2 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.01049, allocations: 59.44 kB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.01069, allocations: 107.1 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.0109, allocations: 115.7 kB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.01126, allocations: 402.3 kB / 243.9 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.01142, allocations: 99.06 kB / 244 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.01176, allocations: 265.3 kB / 244.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.01193, allocations: 131.6 kB / 244.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.784e-05/0.01198, allocations: 36 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.01203, allocations: 36 kB / 244.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.341e-05/0.01208, allocations: 59.81 kB / 244.5 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.01218, allocations: 95.81 kB / 244.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.01247, allocations: 223.2 kB / 244.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.474e-05/0.01249, allocations: 3.984 kB / 244.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01249, allocations: 4 kB / 244.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.0125, allocations: 0 / 244.8 MB, free: 13.88 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.001353/0.01386, allocations: 0.6269 MB / 245.4 MB, free: 13.22 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.01388, allocations: 12.03 kB / 245.4 MB, free: 13.21 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.01398, allocations: 40.91 kB / 245.5 MB, free: 13.17 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.01421, allocations: 189.2 kB / 245.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.01423, allocations: 20.86 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.01426, allocations: 24.38 kB / 245.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.01459, allocations: 251.8 kB / 246 MB, free: 12.65 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.0146, allocations: 192 / 246 MB, free: 12.65 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.01462, allocations: 12.38 kB / 246 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.01463, allocations: 7.938 kB / 246 MB, free: 12.63 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.01475, allocations: 67.47 kB / 246 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009708/0.01572, allocations: 0.8141 MB / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.0159, allocations: 70.48 kB / 246.9 MB, free: 11.62 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.388e-05/0.01593, allocations: 16.86 kB / 246.9 MB, free: 11.6 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.01596, allocations: 11.98 kB / 247 MB, free: 11.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/0.01608, allocations: 89.19 kB / 247 MB, free: 11.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.01608, allocations: 0 / 247 MB, free: 11.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002931/0.01637, allocations: 118.4 kB / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.0164, allocations: 81.11 kB / 247.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.01658, allocations: 264.8 kB / 247.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.0166, allocations: 33.7 kB / 247.5 MB, free: 10.95 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.01669, allocations: 204.3 kB / 247.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.01671, allocations: 35.88 kB / 247.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.148e-05/0.01679, allocations: 53.91 kB / 247.8 MB, free: 10.64 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.394e-05/0.01687, allocations: 334.8 kB / 248.1 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.678e-05/0.01693, allocations: 53.86 kB / 248.2 MB, free: 10.25 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.01703, allocations: 156.7 kB / 248.4 MB, free: 10.04 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.0172, allocations: 210.7 kB / 248.6 MB, free: 9.773 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.0172, allocations: 0 / 248.6 MB, free: 9.773 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002634/0.01747, allocations: 241.5 kB / 248.8 MB, free: 9.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.0175, allocations: 37.69 kB / 248.8 MB, free: 9.473 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.01751, allocations: 4 kB / 248.8 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.0177, allocations: 49.27 kB / 248.9 MB, free: 9.418 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.01786, allocations: 63.89 kB / 248.9 MB, free: 9.355 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006381/0.0185, allocations: 1.186 MB / 250.1 MB, free: 8.082 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.01866, allocations: 35.83 kB / 250.2 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.01868, allocations: 15.97 kB / 250.2 MB, free: 8.031 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 8.878e-05/0.01877, allocations: 129.7 kB / 250.3 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.0188, allocations: 19.92 kB / 250.3 MB, free: 7.875 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.01883, allocations: 25.77 kB / 250.4 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.01883, allocations: 0 / 250.4 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.01883, allocations: 4.062 kB / 250.4 MB, free: 7.852 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.01883, allocations: 0 / 250.4 MB, free: 7.852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.01907, allocations: 263.5 kB / 250.6 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01907, allocations: 0 / 250.6 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.386e-05/0.01914, allocations: 23.92 kB / 250.6 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.272e-05/0.01918, allocations: 27.78 kB / 250.7 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/0.01931, allocations: 40.84 kB / 250.7 MB, free: 7.473 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.01932, allocations: 0 / 250.7 MB, free: 7.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005601/0.01988, allocations: 1.166 MB / 251.9 MB, free: 6.219 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01988, allocations: 0 / 251.9 MB, free: 6.219 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.02002, allocations: 130.8 kB / 252 MB, free: 6.066 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.02004, allocations: 0 / 252 MB, free: 6.066 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.02014, allocations: 19.98 kB / 252 MB, free: 6.047 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.02019, allocations: 23.91 kB / 252 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.02019, allocations: 0 / 252 MB, free: 6.023 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003095/0.0205, allocations: 90.77 kB / 252.1 MB, free: 5.938 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0205, allocations: 0 / 252.1 MB, free: 5.938 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.02076, allocations: 75.78 kB / 252.2 MB, free: 5.863 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 9.038e-05/0.02085, allocations: 88.34 kB / 252.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.02115, allocations: 304.5 kB / 252.6 MB, free: 5.438 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.02116, allocations: 4 kB / 252.6 MB, free: 5.434 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.02129, allocations: 156.5 kB / 252.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.02147, allocations: 72.03 kB / 252.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.02307, allocations: 454 kB / 253.3 MB, free: 4.715 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.861e-05/0.02311, allocations: 88.31 kB / 253.3 MB, free: 4.609 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.988e-05/0.0232, allocations: 30.28 kB / 253.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.02332, allocations: 83.36 kB / 253.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02332, allocations: 0 / 253.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of Templates: time 0.008468/0.03179, allocations: 3.447 MB / 256.9 MB, free: 1.113 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.561309306882322]