Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.006655/0.006655, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.00129/0.00129, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.669/1.669, allocations: 205.1 MB / 222.5 MB, free: 4.398 MB / 174.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.001859/0.00186, allocations: 51.58 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1658, allocations: 46.63 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005715/0.1715, allocations: 2.84 MB / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.1736, allocations: 0.7446 MB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002592/0.1739, allocations: 7.938 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.1742, allocations: 51.52 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.1745, allocations: 99.17 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.175, allocations: 107.8 kB / 377 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006013/0.1756, allocations: 406.3 kB / 377.4 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003873/0.176, allocations: 131.8 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.1763, allocations: 159.4 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.1766, allocations: 175.2 kB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.054e-05/0.1767, allocations: 40 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.1768, allocations: 36 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1769, allocations: 79.69 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.1772, allocations: 159.2 kB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006434/0.1778, allocations: 402.6 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.1778, allocations: 0 / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1779, allocations: 7.875 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.1779, allocations: 0 / 378.6 MB, free: 11.84 MB / 318.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.001966/0.1798, allocations: 0.677 MB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/0.1799, allocations: 12.03 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.1801, allocations: 36.56 kB / 379.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007356/0.1808, allocations: 291.6 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.1808, allocations: 20.94 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.1809, allocations: 24.38 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.1817, allocations: 297 kB / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1817, allocations: 0 / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.1817, allocations: 8 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1818, allocations: 8 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008101/0.1826, allocations: 278 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.1845, allocations: 1.06 MB / 381.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000757/0.1853, allocations: 190.6 kB / 381.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.1856, allocations: 92.72 kB / 381.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.1857, allocations: 0 / 381.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.1861, allocations: 153 kB / 381.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.1861, allocations: 0 / 381.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001332/0.1875, allocations: 395.1 kB / 382.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.1876, allocations: 85.11 kB / 382.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.188, allocations: 328.4 kB / 382.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.1881, allocations: 29.69 kB / 382.5 MB, free: 7.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.1883, allocations: 195.6 kB / 382.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.1884, allocations: 51.47 kB / 382.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.1885, allocations: 53.92 kB / 382.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002625/0.1888, allocations: 334.8 kB / 383.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.1891, allocations: 101.5 kB / 383.3 MB, free: 6.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.1895, allocations: 194.1 kB / 383.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007833/0.1903, allocations: 319.1 kB / 383.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1904, allocations: 0 / 383.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009344/0.1913, allocations: 395.6 kB / 384.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-05/0.1914, allocations: 34.8 kB / 384.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1914, allocations: 4.469 kB / 384.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.1917, allocations: 36.83 kB / 384.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.192, allocations: 63.83 kB / 384.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.1934, allocations: 1.394 MB / 385.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.1938, allocations: 51.59 kB / 385.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.1938, allocations: 20.09 kB / 385.7 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003543/0.1942, allocations: 184.3 kB / 385.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000369/0.1945, allocations: 198.3 kB / 386.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005693/0.1951, allocations: 287.2 kB / 386.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.886e-06/0.1951, allocations: 0 / 386.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007817/0.1959, allocations: 367.6 kB / 386.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.189e-05/0.196, allocations: 34.17 kB / 386.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.196, allocations: 11.98 kB / 386.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/0.1961, allocations: 28.84 kB / 386.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.1964, allocations: 51.89 kB / 386.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.1979, allocations: 1.402 MB / 388.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.1982, allocations: 35.97 kB / 388.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.1982, allocations: 23.94 kB / 388.3 MB, free: 1.246 MB / 318.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.0002828/0.1985, allocations: 196.1 kB / 388.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-05/0.1986, allocations: 31.61 kB / 388.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.1987, allocations: 33.89 kB / 388.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1987, allocations: 4 kB / 388.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.1987, allocations: 0 / 388.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1987, allocations: 3.938 kB / 388.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007266/0.1995, allocations: 459.1 kB / 389.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1995, allocations: 0 / 389.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.1996, allocations: 27.97 kB / 389.1 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.1998, allocations: 24.84 kB / 389.1 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1998, allocations: 4 kB / 389.1 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.2012, allocations: 1.406 MB / 390.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2012, allocations: 0 / 390.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007459/0.202, allocations: 262.3 kB / 390.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.2022, allocations: 104.8 kB / 390.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/0.2022, allocations: 4 kB / 390.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.2024, allocations: 23.91 kB / 390.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.2025, allocations: 23.97 kB / 390.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.2026, allocations: 4 kB / 390.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003124/0.2029, allocations: 227.1 kB / 391.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.387e-06/0.2029, allocations: 4 kB / 391.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006076/0.2035, allocations: 131.6 kB / 391.3 MB, free: 14.05 MB / 334.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.0002451/0.2038, allocations: 107.2 kB / 391.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.2056, allocations: 0.6889 MB / 392.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2056, allocations: 4.062 kB / 392.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004544/0.2061, allocations: 210.6 kB / 392.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/0.2065, allocations: 48.61 kB / 392.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2079, allocations: 477 kB / 392.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006469/0.2086, allocations: 0.7522 MB / 393.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001978/0.2088, allocations: 38.97 kB / 393.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.552e-05/0.2089, allocations: 31.42 kB / 393.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2089, allocations: 0 / 393.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Templates: time 0.01108/0.22, allocations: 3.663 MB / 397.3 MB, free: 7.918 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)