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.001467/0.001466, allocations: 112.1 kB / 16.62 MB, free: 6.812 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.001513/0.001513, allocations: 190 kB / 17.55 MB, free: 5.934 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.77/1.77, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001244/0.001245, allocations: 47.94 kB / 279.5 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.157, allocations: 46.62 MB / 326.1 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005841/0.1629, allocations: 2.9 MB / 329 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.1645, allocations: 0.7371 MB / 329.8 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.1646, allocations: 4 kB / 329.8 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.1649, allocations: 39.62 kB / 329.8 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.1651, allocations: 75.39 kB / 329.9 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003269/0.1654, allocations: 95.91 kB / 330 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.1659, allocations: 394.4 kB / 330.4 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.1661, allocations: 131.9 kB / 330.5 MB, free: 384 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/0.1664, allocations: 147.5 kB / 330.6 MB, free: 236 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1666, allocations: 175.2 kB / 330.8 MB, free: 60 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.1667, allocations: 40 kB / 330.9 MB, free: 20 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.1667, allocations: 36.05 kB / 330.9 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.961e-05/0.1668, allocations: 79.64 kB / 331 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.167, allocations: 171.1 kB / 331.1 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004087/0.1674, allocations: 398.9 kB / 331.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1674, allocations: 0 / 331.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1674, allocations: 0 / 331.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1674, allocations: 0 / 331.5 MB, free: 15.35 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.001465/0.1689, allocations: 0.6808 MB / 332.2 MB, free: 14.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.169, allocations: 12.03 kB / 332.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.1691, allocations: 36.56 kB / 332.3 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.1695, allocations: 295.5 kB / 332.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.1696, allocations: 20.92 kB / 332.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.1696, allocations: 24.38 kB / 332.6 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007079/0.1703, allocations: 289.1 kB / 332.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1704, allocations: 0 / 332.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.1704, allocations: 16 kB / 332.9 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1704, allocations: 8 kB / 332.9 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000781/0.1712, allocations: 278 kB / 333.2 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.173, allocations: 1.06 MB / 334.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/0.1737, allocations: 202.5 kB / 334.4 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.174, allocations: 80.8 kB / 334.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.1741, allocations: 8 kB / 334.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005243/0.1746, allocations: 149 kB / 334.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.1746, allocations: 0 / 334.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001169/0.1758, allocations: 395.1 kB / 335 MB, free: 11.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.1758, allocations: 81.14 kB / 335.1 MB, free: 11.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.1762, allocations: 324.5 kB / 335.4 MB, free: 11.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.1763, allocations: 33.7 kB / 335.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1764, allocations: 203.5 kB / 335.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.1765, allocations: 31.55 kB / 335.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.846e-05/0.1766, allocations: 57.83 kB / 335.8 MB, free: 10.83 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1768, allocations: 342.8 kB / 336.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.1771, allocations: 101.5 kB / 336.2 MB, free: 10.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/0.1775, allocations: 198.1 kB / 336.4 MB, free: 10.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/0.1782, allocations: 323.1 kB / 336.7 MB, free: 9.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1782, allocations: 0 / 336.7 MB, free: 9.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008935/0.1791, allocations: 383.8 kB / 337.1 MB, free: 9.379 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.226e-05/0.1792, allocations: 33.7 kB / 337.1 MB, free: 9.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1792, allocations: 4 kB / 337.1 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.1794, allocations: 28.83 kB / 337.1 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1797, allocations: 72.02 kB / 337.2 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.181, allocations: 1.41 MB / 338.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.1814, allocations: 51.59 kB / 338.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.1814, allocations: 12 kB / 338.7 MB, free: 7.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003575/0.1818, allocations: 188.4 kB / 338.9 MB, free: 7.438 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003095/0.1821, allocations: 190.1 kB / 339.1 MB, free: 7.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005537/0.1826, allocations: 303.2 kB / 339.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.1827, allocations: 0 / 339.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007664/0.1834, allocations: 359.4 kB / 339.7 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1835, allocations: 33.7 kB / 339.7 MB, free: 6.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1835, allocations: 4 kB / 339.7 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001015/0.1836, allocations: 37.22 kB / 339.8 MB, free: 6.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.1838, allocations: 59.89 kB / 339.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.1849, allocations: 1.394 MB / 341.2 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.1852, allocations: 31.83 kB / 341.3 MB, free: 4.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.1853, allocations: 20.08 kB / 341.3 MB, free: 4.758 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.0002013/0.1855, allocations: 200.1 kB / 341.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/0.1855, allocations: 27.72 kB / 341.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.1856, allocations: 25.89 kB / 341.5 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1856, allocations: 0 / 341.5 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1856, allocations: 4 kB / 341.5 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1856, allocations: 0 / 341.5 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.1861, allocations: 467.1 kB / 342 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1861, allocations: 4 kB / 342 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1863, allocations: 31.91 kB / 342 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.1864, allocations: 28.83 kB / 342 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.1865, allocations: 0 / 342 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.1877, allocations: 1.398 MB / 343.4 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1877, allocations: 0 / 343.4 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.1884, allocations: 266.3 kB / 343.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.1885, allocations: 104.8 kB / 343.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.1885, allocations: 4 kB / 343.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.1887, allocations: 23.97 kB / 343.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.1888, allocations: 15.98 kB / 343.9 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.1888, allocations: 3.984 kB / 343.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003126/0.1891, allocations: 239.1 kB / 344.1 MB, free: 1.688 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1892, allocations: 0 / 344.1 MB, free: 1.688 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005583/0.1897, allocations: 119.8 kB / 344.2 MB, free: 1.57 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.0001801/0.1899, allocations: 95.25 kB / 344.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.1915, allocations: 0.704 MB / 345 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1915, allocations: 0 / 345 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.192, allocations: 218.5 kB / 345.2 MB, free: 496 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.1924, allocations: 49.06 kB / 345.3 MB, free: 448 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1936, allocations: 0.5635 MB / 345.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.194, allocations: 0.756 MB / 346.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.1942, allocations: 42.94 kB / 346.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.537e-05/0.1943, allocations: 23.44 kB / 346.6 MB, free: 15 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1943, allocations: 0 / 346.6 MB, free: 15 MB / 302.1 MB Notification: Performance of Templates: time 0.008654/0.203, allocations: 3.537 MB / 350.2 MB, free: 11.46 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)