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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 102.9 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 43.94 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1444, allocations: 46.61 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00526/0.1498, allocations: 2.912 MB / 329.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1512, allocations: 0.7255 MB / 330.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.1514, allocations: 7.938 kB / 330.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.1517, allocations: 43.69 kB / 330.3 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1519, allocations: 83.36 kB / 330.4 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.1523, allocations: 87.92 kB / 330.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.1527, allocations: 378.4 kB / 330.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.153, allocations: 119.5 kB / 330.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.1532, allocations: 131.4 kB / 331.1 MB, free: 404 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.1534, allocations: 163.2 kB / 331.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.361e-05/0.1535, allocations: 24 kB / 331.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.919e-05/0.1536, allocations: 24 kB / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.085e-05/0.1537, allocations: 71.67 kB / 331.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.1539, allocations: 151.2 kB / 331.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.1544, allocations: 382.9 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1545, allocations: 0 / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1545, allocations: 4 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1545, allocations: 0 / 331.9 MB, free: 15.59 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.001557/0.1561, allocations: 0.6847 MB / 332.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1561, allocations: 12.03 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.1562, allocations: 32.56 kB / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.1567, allocations: 295.5 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.1567, allocations: 12.94 kB / 332.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.1568, allocations: 28.31 kB / 332.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006948/0.1575, allocations: 293.1 kB / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1575, allocations: 0 / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.1575, allocations: 12 kB / 333.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1576, allocations: 11.94 kB / 333.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.1584, allocations: 282 kB / 333.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.1601, allocations: 1.052 MB / 334.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007279/0.1609, allocations: 198.5 kB / 334.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.1612, allocations: 84.78 kB / 334.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.1612, allocations: 0 / 334.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005119/0.1617, allocations: 153 kB / 335 MB, free: 12.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.1617, allocations: 0 / 335 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.00119/0.1629, allocations: 395.1 kB / 335.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.163, allocations: 81.11 kB / 335.5 MB, free: 11.74 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.1633, allocations: 320.5 kB / 335.8 MB, free: 11.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.1634, allocations: 33.7 kB / 335.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.1636, allocations: 211.4 kB / 336 MB, free: 11.17 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.1636, allocations: 31.55 kB / 336 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.1637, allocations: 57.84 kB / 336.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1639, allocations: 342.8 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.1642, allocations: 97.48 kB / 336.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.1646, allocations: 202.1 kB / 336.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000661/0.1653, allocations: 319.1 kB / 337 MB, free: 10.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1653, allocations: 3.938 kB / 337 MB, free: 10.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000856/0.1661, allocations: 391.7 kB / 337.4 MB, free: 9.617 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.1662, allocations: 29.7 kB / 337.4 MB, free: 9.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.1662, allocations: 4 kB / 337.5 MB, free: 9.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/0.1664, allocations: 33.03 kB / 337.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.1667, allocations: 63.88 kB / 337.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.1678, allocations: 1.296 MB / 338.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.1682, allocations: 51.66 kB / 338.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.1682, allocations: 15.98 kB / 338.9 MB, free: 7.988 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003641/0.1686, allocations: 188.2 kB / 339.1 MB, free: 7.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003343/0.1689, allocations: 194.5 kB / 339.3 MB, free: 7.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005377/0.1695, allocations: 303.2 kB / 339.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.1695, allocations: 4.375 kB / 339.6 MB, free: 7.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007363/0.1702, allocations: 359.6 kB / 339.9 MB, free: 6.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.1703, allocations: 33.7 kB / 340 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1703, allocations: 4 kB / 340 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00011/0.1704, allocations: 41.02 kB / 340 MB, free: 6.754 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.1706, allocations: 47.91 kB / 340.1 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008838/0.1715, allocations: 1.308 MB / 341.4 MB, free: 5.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.1718, allocations: 35.81 kB / 341.4 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.1718, allocations: 15.94 kB / 341.4 MB, free: 5.219 MB / 286.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.0001427/0.172, allocations: 196.1 kB / 341.6 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.172, allocations: 27.7 kB / 341.6 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.272e-05/0.1721, allocations: 29.92 kB / 341.7 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1721, allocations: 8 kB / 341.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1721, allocations: 0 / 341.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1721, allocations: 0 / 341.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005062/0.1726, allocations: 459.1 kB / 342.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1727, allocations: 0 / 342.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.1728, allocations: 31.97 kB / 342.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.1729, allocations: 36.8 kB / 342.2 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.173, allocations: 0 / 342.2 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009284/0.1739, allocations: 1.292 MB / 343.5 MB, free: 2.941 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1739, allocations: 0 / 343.5 MB, free: 2.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007206/0.1746, allocations: 266.4 kB / 343.7 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.072e-05/0.1747, allocations: 104.8 kB / 343.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.1748, allocations: 8 kB / 343.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.175, allocations: 19.97 kB / 343.9 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.1751, allocations: 27.84 kB / 343.9 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1752, allocations: 4 kB / 343.9 MB, free: 2.477 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.1755, allocations: 235.1 kB / 344.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1755, allocations: 0 / 344.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005579/0.176, allocations: 119.8 kB / 344.2 MB, free: 2.133 MB / 286.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.0002284/0.1763, allocations: 103.2 kB / 344.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.1777, allocations: 0.6847 MB / 345 MB, free: 1.285 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1777, allocations: 3.938 kB / 345 MB, free: 1.281 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004198/0.1782, allocations: 214.6 kB / 345.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1785, allocations: 53.3 kB / 345.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.1797, allocations: 0.5667 MB / 345.9 MB, free: 428 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.1801, allocations: 0.7483 MB / 346.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.1803, allocations: 42.95 kB / 346.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.213e-05/0.1804, allocations: 23.44 kB / 346.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1804, allocations: 0 / 346.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Templates: time 0.008328/0.1888, allocations: 3.376 MB / 350.1 MB, free: 12.2 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches