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.001046/0.001046, allocations: 92.33 kB / 17.3 MB, free: 6.07 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.001386/0.001387, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.941/1.941, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005152/0.0005154, allocations: 19.94 kB / 281.4 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1481, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004766/0.153, allocations: 2.523 MB / 331.5 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.1554, allocations: 0.7294 MB / 332.2 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004739/0.1559, allocations: 7.938 kB / 332.2 MB, free: 480 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.1563, allocations: 35.77 kB / 332.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006336/0.157, allocations: 83.31 kB / 332.3 MB, free: 360 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005405/0.1575, allocations: 95.84 kB / 332.4 MB, free: 264 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008847/0.1584, allocations: 366.4 kB / 332.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.1589, allocations: 115.5 kB / 332.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004451/0.1594, allocations: 123.5 kB / 333 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004994/0.1599, allocations: 151.2 kB / 333.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.1601, allocations: 20 kB / 333.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1602, allocations: 16 kB / 333.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.1603, allocations: 67.62 kB / 333.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003678/0.1607, allocations: 180.8 kB / 333.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.1613, allocations: 366.8 kB / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1613, allocations: 0 / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.008e-06/0.1613, allocations: 0 / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1614, allocations: 0 / 333.8 MB, free: 14.87 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.002065/0.1634, allocations: 0.6576 MB / 334.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.05e-05/0.1635, allocations: 8.031 kB / 334.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.1637, allocations: 36.56 kB / 334.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.1644, allocations: 291.6 kB / 334.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.15e-05/0.1644, allocations: 24.88 kB / 334.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.1645, allocations: 24.38 kB / 334.8 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009124/0.1654, allocations: 309.1 kB / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1654, allocations: 0 / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/0.1655, allocations: 8 kB / 335.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1655, allocations: 8 kB / 335.2 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009375/0.1665, allocations: 318 kB / 335.5 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.1687, allocations: 1.087 MB / 336.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008851/0.1696, allocations: 234.5 kB / 336.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.17, allocations: 100.8 kB / 336.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.17, allocations: 7.984 kB / 336.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006278/0.1707, allocations: 169 kB / 337.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 3.927e-06/0.1707, allocations: 0 / 337.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001524/0.1722, allocations: 447 kB / 337.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.1723, allocations: 85.14 kB / 337.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/0.1729, allocations: 320.6 kB / 337.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.1729, allocations: 29.7 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.1732, allocations: 207.5 kB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.212e-05/0.1732, allocations: 39.53 kB / 338.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/0.1733, allocations: 25.7 kB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.1736, allocations: 338.8 kB / 338.5 MB, free: 9.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.174, allocations: 108.5 kB / 338.6 MB, free: 9.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.1745, allocations: 222.1 kB / 338.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007991/0.1753, allocations: 343.1 kB / 339.2 MB, free: 9.098 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1753, allocations: 0 / 339.2 MB, free: 9.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001004/0.1763, allocations: 427.5 kB / 339.6 MB, free: 8.664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002697/0.1766, allocations: 219.7 kB / 339.8 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.1766, allocations: 4 kB / 339.8 MB, free: 8.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.1769, allocations: 36.84 kB / 339.9 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.1772, allocations: 67.89 kB / 339.9 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.1788, allocations: 1.304 MB / 341.2 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1792, allocations: 63.75 kB / 341.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.189e-05/0.1792, allocations: 12 kB / 341.3 MB, free: 6.773 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/0.1793, allocations: 7.938 kB / 341.3 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008459/0.1801, allocations: 354.4 kB / 341.6 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1801, allocations: 8 kB / 341.7 MB, free: 6.402 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.528e-05/0.1802, allocations: 24.84 kB / 341.7 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1804, allocations: 55.91 kB / 341.7 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.1816, allocations: 1.296 MB / 343 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.1819, allocations: 51.84 kB / 343.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.182, allocations: 12 kB / 343.1 MB, free: 4.824 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.0003071/0.1823, allocations: 217.1 kB / 343.3 MB, free: 4.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.1823, allocations: 27.62 kB / 343.3 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.1824, allocations: 29.89 kB / 343.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1824, allocations: 0 / 343.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1824, allocations: 7.938 kB / 343.4 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1825, allocations: 4 kB / 343.4 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006698/0.1831, allocations: 451.1 kB / 343.8 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1831, allocations: 0 / 343.8 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.1833, allocations: 35.97 kB / 343.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.1834, allocations: 36.8 kB / 343.9 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1835, allocations: 4 kB / 343.9 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.1849, allocations: 1.3 MB / 345.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.777e-05/0.185, allocations: 4 kB / 345.2 MB, free: 2.516 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007759/0.1858, allocations: 298.4 kB / 345.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.889e-05/0.1859, allocations: 108.7 kB / 345.6 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.1859, allocations: 4 kB / 345.6 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1861, allocations: 31.97 kB / 345.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.1863, allocations: 19.97 kB / 345.6 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.1863, allocations: 4 kB / 345.6 MB, free: 2.016 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003205/0.1866, allocations: 235 kB / 345.9 MB, free: 1.789 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1866, allocations: 0 / 345.9 MB, free: 1.789 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005579/0.1872, allocations: 119.8 kB / 346 MB, free: 1.672 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.000217/0.1874, allocations: 99.19 kB / 346.1 MB, free: 1.566 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.1891, allocations: 0.739 MB / 346.8 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1891, allocations: 4 kB / 346.8 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005007/0.1896, allocations: 235.3 kB / 347.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.1901, allocations: 45.38 kB / 347.1 MB, free: 500 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.1914, allocations: 0.5892 MB / 347.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.1919, allocations: 0.7522 MB / 348.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.192, allocations: 42.95 kB / 348.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.058e-05/0.1921, allocations: 27.38 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1921, allocations: 0 / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Templates: time 0.008506/0.2007, allocations: 3.336 MB / 351.9 MB, free: 11.69 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