Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001001/0.001001, allocations: 93.83 kB / 16.65 MB, free: 6.598 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.0009356/0.0009359, allocations: 179 kB / 17.56 MB, free: 6.199 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.787/1.787, allocations: 205.4 MB / 223.8 MB, free: 13.06 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.0005571/0.0005574, allocations: 12 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1526, allocations: 47.58 MB / 328.3 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003881/0.1565, allocations: 2.526 MB / 330.9 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.1584, allocations: 0.7255 MB / 331.6 MB, free: 472 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.1587, allocations: 4 kB / 331.6 MB, free: 468 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.1589, allocations: 35.69 kB / 331.6 MB, free: 432 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.1592, allocations: 87.38 kB / 331.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1595, allocations: 103.7 kB / 331.8 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.16, allocations: 370.4 kB / 332.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.1604, allocations: 111.5 kB / 332.3 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.1607, allocations: 127.5 kB / 332.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.161, allocations: 151.2 kB / 332.5 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.161, allocations: 20 kB / 332.6 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.837e-05/0.1611, allocations: 20 kB / 332.6 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.742e-05/0.1612, allocations: 55.7 kB / 332.6 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/0.1614, allocations: 176.9 kB / 332.8 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.1619, allocations: 370.8 kB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1619, allocations: 0 / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.1619, allocations: 3.938 kB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.1619, allocations: 0 / 333.2 MB, free: 14.85 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.001432/0.1634, allocations: 0.6537 MB / 333.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1634, allocations: 12.03 kB / 333.8 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.1635, allocations: 32.56 kB / 333.9 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.1639, allocations: 287.6 kB / 334.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.164, allocations: 20.94 kB / 334.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/0.164, allocations: 28.38 kB / 334.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007048/0.1647, allocations: 309 kB / 334.5 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1648, allocations: 0 / 334.5 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.1648, allocations: 12 kB / 334.5 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1648, allocations: 4 kB / 334.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008627/0.1657, allocations: 322 kB / 334.8 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.1676, allocations: 1.079 MB / 335.9 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008052/0.1684, allocations: 238.5 kB / 336.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.1687, allocations: 100.8 kB / 336.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1688, allocations: 3.938 kB / 336.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/0.1693, allocations: 165 kB / 336.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.863e-06/0.1693, allocations: 0 / 336.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001457/0.1708, allocations: 455 kB / 336.9 MB, free: 10.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.1708, allocations: 81.48 kB / 336.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.1712, allocations: 320.6 kB / 337.3 MB, free: 10.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.1713, allocations: 25.7 kB / 337.3 MB, free: 10.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.1715, allocations: 207.5 kB / 337.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.621e-05/0.1715, allocations: 43.47 kB / 337.5 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.1716, allocations: 33.7 kB / 337.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1717, allocations: 334.8 kB / 337.9 MB, free: 9.844 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.1721, allocations: 112.2 kB / 338 MB, free: 9.734 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.1725, allocations: 218 kB / 338.2 MB, free: 9.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007089/0.1732, allocations: 347.1 kB / 338.5 MB, free: 9.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1733, allocations: 4 kB / 338.5 MB, free: 9.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009535/0.1742, allocations: 431.6 kB / 339 MB, free: 8.637 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.1744, allocations: 215.7 kB / 339.2 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.1745, allocations: 4 kB / 339.2 MB, free: 8.363 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/0.1747, allocations: 32.83 kB / 339.2 MB, free: 8.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.175, allocations: 75.89 kB / 339.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.1764, allocations: 1.292 MB / 340.6 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003903/0.1768, allocations: 63.59 kB / 340.6 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.1768, allocations: 11.98 kB / 340.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.1769, allocations: 11.88 kB / 340.7 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000827/0.1777, allocations: 346.5 kB / 341 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1777, allocations: 7.984 kB / 341 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.189e-05/0.1778, allocations: 28.78 kB / 341 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.178, allocations: 64.02 kB / 341.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.1791, allocations: 1.288 MB / 342.4 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.1794, allocations: 51.69 kB / 342.4 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.1794, allocations: 8 kB / 342.4 MB, free: 4.812 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.0002655/0.1797, allocations: 228.8 kB / 342.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.1798, allocations: 27.62 kB / 342.7 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.014e-05/0.1798, allocations: 29.89 kB / 342.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1798, allocations: 4 kB / 342.7 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1798, allocations: 3.938 kB / 342.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1799, allocations: 0 / 342.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005287/0.1804, allocations: 451.2 kB / 343.2 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1804, allocations: 3.938 kB / 343.2 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.1806, allocations: 44 kB / 343.2 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.1807, allocations: 24.78 kB / 343.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1807, allocations: 7.984 kB / 343.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.1818, allocations: 1.296 MB / 344.6 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1818, allocations: 4.031 kB / 344.6 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007409/0.1826, allocations: 294.4 kB / 344.8 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-05/0.1827, allocations: 108.7 kB / 344.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.1827, allocations: 11.98 kB / 345 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.183, allocations: 27.97 kB / 345 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.183, allocations: 19.92 kB / 345 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.1831, allocations: 4 kB / 345 MB, free: 2 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.1833, allocations: 235 kB / 345.2 MB, free: 1.773 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1833, allocations: 0 / 345.2 MB, free: 1.773 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005918/0.1839, allocations: 127.8 kB / 345.4 MB, free: 1.648 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.0001659/0.1841, allocations: 99.23 kB / 345.5 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.1858, allocations: 0.7433 MB / 346.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1858, allocations: 0 / 346.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.1863, allocations: 231.3 kB / 346.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.1868, allocations: 36.64 kB / 346.5 MB, free: 488 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.188, allocations: 0.5931 MB / 347.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.1884, allocations: 0.7561 MB / 347.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.1886, allocations: 34.97 kB / 347.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.537e-05/0.1887, allocations: 23.44 kB / 347.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.545e-06/0.1887, allocations: 4 kB / 347.9 MB, free: 15 MB / 302.1 MB Notification: Performance of Templates: time 0.008116/0.1968, allocations: 3.333 MB / 351.2 MB, free: 11.68 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)