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) 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 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_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.001164/0.001164, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009842/0.0009842, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.2 MB / 241.1 MB, free: 5.227 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003927, allocations: 13.5 kB / 300.7 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1468, allocations: 50.41 MB / 351.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003717/0.1506, allocations: 2.354 MB / 353.5 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.152, allocations: 0.6822 MB / 354.2 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.1522, allocations: 7.938 kB / 354.2 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.253e-05/0.1523, allocations: 31.75 kB / 354.2 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.1526, allocations: 107.6 kB / 354.3 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.1529, allocations: 71.86 kB / 354.4 MB, free: 8.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004212/0.1534, allocations: 251.5 kB / 354.6 MB, free: 7.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1536, allocations: 98.17 kB / 354.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.1538, allocations: 123.5 kB / 354.9 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.1541, allocations: 143.4 kB / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.1541, allocations: 20 kB / 355 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.896e-05/0.1542, allocations: 23.94 kB / 355 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-05/0.1543, allocations: 55.81 kB / 355.1 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.322e-05/0.1544, allocations: 77.52 kB / 355.2 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.1548, allocations: 295.1 kB / 355.5 MB, free: 7.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1548, allocations: 3.938 kB / 355.5 MB, free: 7.051 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.1548, allocations: 4 kB / 355.5 MB, free: 7.047 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1548, allocations: 0 / 355.5 MB, free: 7.047 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.001577/0.1564, allocations: 0.6496 MB / 356.1 MB, free: 6.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1564, allocations: 8.031 kB / 356.1 MB, free: 6.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.649e-05/0.1565, allocations: 31.62 kB / 356.2 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004253/0.157, allocations: 286.4 kB / 356.4 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.157, allocations: 24.5 kB / 356.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.1571, allocations: 27.94 kB / 356.5 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009149/0.158, allocations: 327.6 kB / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.158, allocations: 0 / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1581, allocations: 15.95 kB / 356.8 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1581, allocations: 8 kB / 356.8 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.1592, allocations: 302 kB / 357.1 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.1615, allocations: 1.165 MB / 358.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1626, allocations: 238.5 kB / 358.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.1627, allocations: 0 / 358.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006332/0.1633, allocations: 173.1 kB / 358.7 MB, free: 3.602 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.793e-06/0.1633, allocations: 0 / 358.7 MB, free: 3.602 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.001729/0.1651, allocations: 451.2 kB / 359.1 MB, free: 3.133 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.1651, allocations: 85.03 kB / 359.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.1656, allocations: 328.4 kB / 359.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.1657, allocations: 29.7 kB / 359.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.1659, allocations: 203.5 kB / 359.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.1659, allocations: 39.47 kB / 359.8 MB, free: 2.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.1659, allocations: 8 kB / 359.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1661, allocations: 342.8 kB / 360.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.1666, allocations: 120.1 kB / 360.3 MB, free: 1.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005643/0.1671, allocations: 215 kB / 360.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.1677, allocations: 153.6 kB / 360.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.1677, allocations: 4 kB / 360.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001278/0.169, allocations: 431.8 kB / 361.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.169, allocations: 38.08 kB / 361.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.169, allocations: 4 kB / 361.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.1692, allocations: 28.84 kB / 361.1 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.1696, allocations: 75.88 kB / 361.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1709, allocations: 1.311 MB / 362.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004725/0.1714, allocations: 63.7 kB / 362.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/0.1714, allocations: 16 kB / 362.6 MB, free: 15.42 MB / 302.1 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.1716, allocations: 149.7 kB / 362.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.094e-05/0.1717, allocations: 27.72 kB / 362.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.897e-05/0.1718, allocations: 26.61 kB / 362.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1718, allocations: 0 / 362.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1718, allocations: 4 kB / 362.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1718, allocations: 7.938 kB / 362.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.1724, allocations: 447.2 kB / 363.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1724, allocations: 4 kB / 363.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.1726, allocations: 39.98 kB / 363.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.1728, allocations: 28.78 kB / 363.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1728, allocations: 4 kB / 363.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.1739, allocations: 1.311 MB / 364.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1739, allocations: 4.031 kB / 364.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.175, allocations: 308.3 kB / 364.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1751, allocations: 108.8 kB / 365 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/0.1751, allocations: 8 kB / 365 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.1755, allocations: 31.97 kB / 365.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.1756, allocations: 15.97 kB / 365.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.1756, allocations: 8 kB / 365.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003065/0.1759, allocations: 223.1 kB / 365.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1759, allocations: 4 kB / 365.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004974/0.1764, allocations: 67.84 kB / 365.4 MB, free: 12.37 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 (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001595/0.1766, allocations: 107.7 kB / 365.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1779, allocations: 438 kB / 365.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1779, allocations: 4 kB / 365.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006535/0.1786, allocations: 231.4 kB / 366.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.179, allocations: 50.08 kB / 366.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.1803, allocations: 0.5575 MB / 366.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.1807, allocations: 0.7637 MB / 367.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002011/0.1809, allocations: 30.97 kB / 367.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.264e-05/0.181, allocations: 23.42 kB / 367.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of SimCode: time 3.036e-06/0.181, allocations: 0 / 367.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Templates: time 0.009135/0.1902, allocations: 2.876 MB / 370.4 MB, free: 7.234 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches