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.001116/0.001116, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.0011/0.0011, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.871/1.871, allocations: 205.1 MB / 223.3 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.001507/0.001507, allocations: 43.94 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1572, allocations: 46.62 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005025/0.1623, allocations: 2.9 MB / 328.9 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.1638, allocations: 0.7333 MB / 329.6 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.164, allocations: 8 kB / 329.6 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002109/0.1642, allocations: 35.7 kB / 329.6 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.1644, allocations: 79.38 kB / 329.7 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.1647, allocations: 91.91 kB / 329.8 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.1651, allocations: 374.4 kB / 330.2 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1653, allocations: 111.5 kB / 330.3 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1655, allocations: 139.4 kB / 330.4 MB, free: 396 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1657, allocations: 159.3 kB / 330.6 MB, free: 236 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-05/0.1657, allocations: 31.94 kB / 330.6 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.243e-05/0.1658, allocations: 24 kB / 330.6 MB, free: 180 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.1659, allocations: 59.75 kB / 330.7 MB, free: 120 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.1661, allocations: 159.2 kB / 330.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003561/0.1664, allocations: 378.9 kB / 331.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1664, allocations: 0 / 331.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1665, allocations: 0 / 331.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1665, allocations: 0 / 331.2 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.001597/0.1681, allocations: 0.6925 MB / 331.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.522e-05/0.1681, allocations: 8.031 kB / 331.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1683, allocations: 36.56 kB / 331.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.1688, allocations: 299.5 kB / 332.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.1688, allocations: 16.94 kB / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.1689, allocations: 24.38 kB / 332.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007208/0.1696, allocations: 297 kB / 332.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1696, allocations: 0 / 332.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.1697, allocations: 12 kB / 332.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1697, allocations: 4 kB / 332.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007954/0.1705, allocations: 286 kB / 332.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1723, allocations: 1.056 MB / 333.9 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007559/0.1731, allocations: 194.6 kB / 334.1 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.1734, allocations: 84.78 kB / 334.2 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.1734, allocations: 0 / 334.2 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005217/0.1739, allocations: 160.9 kB / 334.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.1739, allocations: 0 / 334.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001269/0.1752, allocations: 391.1 kB / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.1753, allocations: 85.03 kB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.1757, allocations: 328.5 kB / 335.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1758, allocations: 25.7 kB / 335.2 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.1759, allocations: 207.5 kB / 335.4 MB, free: 11.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.176, allocations: 39.53 kB / 335.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.337e-05/0.1761, allocations: 57.83 kB / 335.5 MB, free: 11.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.1763, allocations: 338.8 kB / 335.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.1767, allocations: 101.5 kB / 335.9 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.1771, allocations: 198.1 kB / 336.1 MB, free: 10.37 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.1778, allocations: 319.1 kB / 336.4 MB, free: 10 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1778, allocations: 7.938 kB / 336.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000951/0.1787, allocations: 383.8 kB / 336.8 MB, free: 9.602 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.1788, allocations: 33.7 kB / 336.8 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1788, allocations: 4 kB / 336.8 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.1791, allocations: 36.77 kB / 336.9 MB, free: 9.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.1793, allocations: 59.89 kB / 336.9 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.1809, allocations: 1.304 MB / 338.2 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.1812, allocations: 55.81 kB / 338.3 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.1813, allocations: 8 kB / 338.3 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004275/0.1817, allocations: 184.3 kB / 338.5 MB, free: 7.781 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003549/0.1821, allocations: 190.1 kB / 338.6 MB, free: 7.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006093/0.1827, allocations: 303.2 kB / 338.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.521e-06/0.1827, allocations: 4 kB / 338.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007966/0.1835, allocations: 363.8 kB / 339.3 MB, free: 6.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.1836, allocations: 37.64 kB / 339.3 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1836, allocations: 4 kB / 339.3 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.1837, allocations: 32.83 kB / 339.4 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.1839, allocations: 51.91 kB / 339.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.1851, allocations: 1.304 MB / 340.7 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.1854, allocations: 35.81 kB / 340.8 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.1855, allocations: 12.16 kB / 340.8 MB, free: 5.207 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.0002126/0.1857, allocations: 200.1 kB / 341 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.636e-05/0.1857, allocations: 23.72 kB / 341 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.241e-05/0.1858, allocations: 33.83 kB / 341 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1858, allocations: 4 kB / 341 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.1858, allocations: 4 kB / 341 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1858, allocations: 3.984 kB / 341 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005587/0.1864, allocations: 455.1 kB / 341.5 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1864, allocations: 0 / 341.5 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.1866, allocations: 31.95 kB / 341.5 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.1867, allocations: 24.84 kB / 341.5 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.1867, allocations: 0 / 341.5 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.1877, allocations: 1.3 MB / 342.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1877, allocations: 0 / 342.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006626/0.1884, allocations: 270.4 kB / 343.1 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.1885, allocations: 104.8 kB / 343.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.1886, allocations: 8 kB / 343.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.1888, allocations: 23.97 kB / 343.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.97e-05/0.1889, allocations: 23.91 kB / 343.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.1889, allocations: 0 / 343.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002345/0.1891, allocations: 231.1 kB / 343.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1892, allocations: 0 / 343.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005279/0.1897, allocations: 119.8 kB / 343.6 MB, free: 2.125 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.0001576/0.1899, allocations: 103.2 kB / 343.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.1913, allocations: 0.6889 MB / 344.4 MB, free: 1.273 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.1913, allocations: 0 / 344.4 MB, free: 1.273 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.1918, allocations: 226.6 kB / 344.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.1922, allocations: 40.62 kB / 344.6 MB, free: 1 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1933, allocations: 0.5626 MB / 345.2 MB, free: 424 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1937, allocations: 0.7522 MB / 346 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000181/0.1939, allocations: 38.97 kB / 346 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.941e-05/0.194, allocations: 27.38 kB / 346 MB, free: 15.57 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.194, allocations: 0 / 346 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Templates: time 0.007608/0.2016, allocations: 3.377 MB / 349.4 MB, free: 12.2 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)