Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001683/0.001683, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001937/0.001937, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.943/1.943, 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.001985/0.001986, allocations: 51.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1446, allocations: 46.64 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.007341/0.1521, allocations: 2.764 MB / 328.7 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1543, allocations: 0.7139 MB / 329.5 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002756/0.1547, allocations: 7.938 kB / 329.5 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.155, allocations: 35.77 kB / 329.5 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.1553, allocations: 79.38 kB / 329.6 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.1558, allocations: 75.94 kB / 329.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005229/0.1563, allocations: 338.6 kB / 330 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002787/0.1566, allocations: 65.17 kB / 330 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.1569, allocations: 131.4 kB / 330.2 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/0.1572, allocations: 139.4 kB / 330.3 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.271e-05/0.1572, allocations: 19.94 kB / 330.3 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.949e-05/0.1573, allocations: 20 kB / 330.3 MB, free: 492 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.054e-05/0.1574, allocations: 47.77 kB / 330.4 MB, free: 444 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.1577, allocations: 139.2 kB / 330.5 MB, free: 304 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004501/0.1581, allocations: 311.2 kB / 330.8 MB, free: 15.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.1582, allocations: 7.938 kB / 330.8 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1582, allocations: 0 / 330.8 MB, free: 15.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1582, allocations: 0 / 330.8 MB, free: 15.98 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001691/0.1599, allocations: 0.6341 MB / 331.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.585e-05/0.16, allocations: 8.031 kB / 331.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1601, allocations: 40.56 kB / 331.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.1605, allocations: 279.6 kB / 331.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.1606, allocations: 12.81 kB / 331.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.1606, allocations: 28.38 kB / 331.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.1613, allocations: 243.5 kB / 332.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1613, allocations: 0 / 332.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.1614, allocations: 16 kB / 332.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1614, allocations: 4 kB / 332.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007591/0.1622, allocations: 241.6 kB / 332.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.1639, allocations: 0.8855 MB / 333.2 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008693/0.1647, allocations: 234.6 kB / 333.4 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.1651, allocations: 104.8 kB / 333.5 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.1652, allocations: 0 / 333.5 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006932/0.1659, allocations: 181.7 kB / 333.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.322e-06/0.1659, allocations: 0 / 333.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002489/0.1684, allocations: 0.6707 MB / 334.4 MB, free: 12.2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.1685, allocations: 110.8 kB / 334.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.1688, allocations: 274.6 kB / 334.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.1688, allocations: 29.7 kB / 334.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.169, allocations: 179.7 kB / 335 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.586e-05/0.1691, allocations: 47.39 kB / 335 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.1692, allocations: 41.7 kB / 335.1 MB, free: 11.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1693, allocations: 334.8 kB / 335.4 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.1697, allocations: 116.7 kB / 335.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/0.17, allocations: 173.4 kB / 335.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.1707, allocations: 272.3 kB / 335.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1707, allocations: 4 kB / 335.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001185/0.1719, allocations: 451.5 kB / 336.4 MB, free: 10.06 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.438e-05/0.172, allocations: 33.73 kB / 336.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.172, allocations: 4 kB / 336.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004203/0.1724, allocations: 76.8 kB / 336.5 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.1726, allocations: 51.89 kB / 336.5 MB, free: 9.891 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.1754, allocations: 1.822 MB / 338.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.1757, allocations: 48.09 kB / 338.4 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.1758, allocations: 12 kB / 338.4 MB, free: 7.867 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003632/0.1761, allocations: 180 kB / 338.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000295/0.1765, allocations: 161.4 kB / 338.8 MB, free: 7.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005197/0.177, allocations: 245.2 kB / 339 MB, free: 7.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.177, allocations: 11.94 kB / 339 MB, free: 7.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007275/0.1777, allocations: 322.8 kB / 339.3 MB, free: 6.883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.1778, allocations: 29.95 kB / 339.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-06/0.1778, allocations: 8 kB / 339.4 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.549e-05/0.1779, allocations: 28.78 kB / 339.4 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.1781, allocations: 47.89 kB / 339.4 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009035/0.179, allocations: 1.312 MB / 340.7 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.1793, allocations: 39.88 kB / 340.8 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1794, allocations: 12 kB / 340.8 MB, free: 5.27 MB / 286.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.0001693/0.1795, allocations: 208.3 kB / 341 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.1796, allocations: 23.72 kB / 341 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.1796, allocations: 29.83 kB / 341.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1797, allocations: 0 / 341.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1797, allocations: 0 / 341.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1797, allocations: 0 / 341.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.18, allocations: 293.4 kB / 341.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.18, allocations: 0 / 341.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.1801, allocations: 23.97 kB / 341.4 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.1804, allocations: 76.8 kB / 341.4 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1804, allocations: 8 kB / 341.4 MB, free: 4.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.1825, allocations: 1.725 MB / 343.2 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1826, allocations: 0 / 343.2 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1836, allocations: 365.9 kB / 343.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/0.1837, allocations: 104.8 kB / 343.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.1837, allocations: 4 kB / 343.6 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.184, allocations: 31.97 kB / 343.7 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.1841, allocations: 19.97 kB / 343.7 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.1841, allocations: 4 kB / 343.7 MB, free: 2.145 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.1843, allocations: 198 kB / 343.9 MB, free: 1.949 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.1843, allocations: 0 / 343.9 MB, free: 1.949 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005799/0.1849, allocations: 127.6 kB / 344 MB, free: 1.824 MB / 286.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.0001773/0.1851, allocations: 107.2 kB / 344.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.1868, allocations: 0.7593 MB / 344.9 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1868, allocations: 0 / 344.9 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.1873, allocations: 230.6 kB / 345.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.1877, allocations: 48.8 kB / 345.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.1907, allocations: 0.9714 MB / 346.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1911, allocations: 0.7483 MB / 346.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.1912, allocations: 26.28 kB / 346.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.1913, allocations: 23.44 kB / 346.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1913, allocations: 0 / 346.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Templates: time 0.008198/0.1995, allocations: 3.821 MB / 350.7 MB, free: 10.98 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)