Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009976/0.009976, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.001689/0.001689, allocations: 196 kB / 16.68 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.907/1.907, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001673/0.001673, allocations: 56.45 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1547, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005753/0.1605, allocations: 2.707 MB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.1626, allocations: 0.7213 MB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003868/0.1631, allocations: 4 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.1634, allocations: 39.58 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004372/0.1638, allocations: 99.23 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.1643, allocations: 87.83 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007631/0.1651, allocations: 370.4 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.1653, allocations: 84.64 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003102/0.1657, allocations: 143.4 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.166, allocations: 155.2 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.298e-05/0.1661, allocations: 28 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.134e-05/0.1661, allocations: 32 kB / 377.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.555e-05/0.1662, allocations: 59.81 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1664, allocations: 147.2 kB / 377.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.1669, allocations: 323 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.1669, allocations: 4 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.1669, allocations: 0 / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.167, allocations: 3.938 kB / 378.2 MB, free: 12.28 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001714/0.1687, allocations: 0.638 MB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.1688, allocations: 12.03 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.1689, allocations: 40.5 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006432/0.1695, allocations: 279.6 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.1696, allocations: 12.81 kB / 379.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.1696, allocations: 24.38 kB / 379.2 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008162/0.1705, allocations: 247.5 kB / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.1705, allocations: 0 / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.1705, allocations: 11.98 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1705, allocations: 4 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007826/0.1713, allocations: 241.6 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.1733, allocations: 0.8699 MB / 380.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009569/0.1743, allocations: 234.6 kB / 380.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003496/0.1747, allocations: 104.8 kB / 380.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.1747, allocations: 0 / 380.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005638/0.1753, allocations: 189.7 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.803e-06/0.1753, allocations: 224 / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002684/0.178, allocations: 0.6707 MB / 381.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.1781, allocations: 110.8 kB / 381.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.1784, allocations: 270.6 kB / 382.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.1785, allocations: 25.7 kB / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.1786, allocations: 179.8 kB / 382.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.453e-05/0.1787, allocations: 43.45 kB / 382.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1788, allocations: 45.61 kB / 382.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.179, allocations: 342.8 kB / 382.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.1794, allocations: 100.8 kB / 382.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/0.1798, allocations: 181.2 kB / 383 MB, free: 7.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007339/0.1805, allocations: 281.1 kB / 383.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.1806, allocations: 0 / 383.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001341/0.1819, allocations: 447.7 kB / 383.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.182, allocations: 33.7 kB / 383.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.182, allocations: 0 / 383.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.1825, allocations: 88.77 kB / 383.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.1827, allocations: 39.91 kB / 383.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003293/0.186, allocations: 2.033 MB / 385.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/0.1864, allocations: 43.88 kB / 385.9 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.1864, allocations: 12 kB / 386 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003699/0.1868, allocations: 180.1 kB / 386.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003224/0.1871, allocations: 161.5 kB / 386.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005281/0.1876, allocations: 241.2 kB / 386.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.1877, allocations: 4 kB / 386.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007802/0.1884, allocations: 335.3 kB / 386.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.1885, allocations: 33.95 kB / 386.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1885, allocations: 8 kB / 386.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001172/0.1886, allocations: 24.84 kB / 386.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.1888, allocations: 47.89 kB / 387 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.19, allocations: 1.406 MB / 388.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.1904, allocations: 51.77 kB / 388.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.1904, allocations: 20 kB / 388.4 MB, free: 1.242 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.1906, allocations: 196.6 kB / 388.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.776e-05/0.1906, allocations: 15.81 kB / 388.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.244e-05/0.1907, allocations: 29.83 kB / 388.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1907, allocations: 0 / 388.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1907, allocations: 3.938 kB / 388.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.1907, allocations: 4 kB / 388.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.1911, allocations: 285.4 kB / 389 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.1911, allocations: 3.984 kB / 389 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.1913, allocations: 31.98 kB / 389 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002786/0.1916, allocations: 68.8 kB / 389.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1916, allocations: 8 kB / 389.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.1941, allocations: 1.919 MB / 391 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1942, allocations: 4.031 kB / 391 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.1952, allocations: 357.4 kB / 391.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.365e-05/0.1953, allocations: 104.8 kB / 391.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/0.1954, allocations: 0 / 391.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.1957, allocations: 35.95 kB / 391.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.1958, allocations: 19.97 kB / 391.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1958, allocations: 7.938 kB / 391.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.1961, allocations: 198 kB / 391.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1961, allocations: 0 / 391.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000621/0.1967, allocations: 123.7 kB / 391.8 MB, free: 13.62 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (9): * Single equations (assignments): 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002255/0.1969, allocations: 111.2 kB / 391.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.1989, allocations: 0.7536 MB / 392.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.1989, allocations: 4 kB / 392.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000527/0.1995, allocations: 239.3 kB / 392.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.1999, allocations: 48.56 kB / 393 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.2032, allocations: 0.8988 MB / 393.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.2037, allocations: 0.7444 MB / 394.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.2039, allocations: 30.28 kB / 394.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.326e-05/0.204, allocations: 19.44 kB / 394.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.204, allocations: 0 / 394.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Templates: time 0.0109/0.2149, allocations: 4.181 MB / 398.8 MB, free: 6.465 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)