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.009327/0.009327, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001595/0.001596, allocations: 187 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.1 MB / 222.6 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.001437/0.001437, allocations: 51.17 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1436, allocations: 46.63 MB / 373.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.006056/0.1497, allocations: 2.711 MB / 375.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.1518, allocations: 0.7173 MB / 376.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000443/0.1523, allocations: 4 kB / 376.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003201/0.1526, allocations: 47.56 kB / 376.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.1531, allocations: 87.25 kB / 376.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.1536, allocations: 87.83 kB / 376.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007971/0.1545, allocations: 370.4 kB / 377.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003688/0.1548, allocations: 84.66 kB / 377.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004504/0.1553, allocations: 139.4 kB / 377.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.1557, allocations: 143.4 kB / 377.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.1558, allocations: 32 kB / 377.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.575e-05/0.1559, allocations: 28 kB / 377.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.156, allocations: 67.75 kB / 377.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.1563, allocations: 143.2 kB / 377.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006026/0.1569, allocations: 334.7 kB / 378.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1569, allocations: 0 / 378.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.61e-06/0.157, allocations: 0 / 378.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.157, allocations: 3.938 kB / 378.2 MB, free: 12.39 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.001889/0.1589, allocations: 0.6494 MB / 378.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.501e-05/0.159, allocations: 8.031 kB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1591, allocations: 32.75 kB / 378.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006322/0.1598, allocations: 291.7 kB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.1598, allocations: 20.81 kB / 379.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.1598, allocations: 16.38 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006635/0.1605, allocations: 255.5 kB / 379.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1606, allocations: 0 / 379.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.1606, allocations: 8 kB / 379.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1606, allocations: 4 kB / 379.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007218/0.1613, allocations: 241.6 kB / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1629, allocations: 0.8702 MB / 380.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007981/0.1637, allocations: 242.6 kB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.164, allocations: 100.8 kB / 380.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.1641, allocations: 0 / 380.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004713/0.1645, allocations: 185.7 kB / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.1646, allocations: 224 / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002364/0.1669, allocations: 0.6669 MB / 381.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.901e-05/0.167, allocations: 118.8 kB / 381.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.1673, allocations: 266.6 kB / 382.1 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1674, allocations: 33.7 kB / 382.1 MB, free: 8.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.1675, allocations: 176.1 kB / 382.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.1676, allocations: 47.64 kB / 382.4 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.382e-05/0.1677, allocations: 45.7 kB / 382.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1678, allocations: 334.8 kB / 382.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.1682, allocations: 104.8 kB / 382.8 MB, free: 7.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.1686, allocations: 177.3 kB / 383 MB, free: 7.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.1692, allocations: 281.1 kB / 383.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1692, allocations: 0 / 383.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001173/0.1704, allocations: 455.7 kB / 383.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/0.1705, allocations: 33.7 kB / 383.8 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1705, allocations: 4 kB / 383.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/0.1709, allocations: 76.83 kB / 383.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.1711, allocations: 47.91 kB / 383.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/0.1741, allocations: 2.025 MB / 385.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.1744, allocations: 51.88 kB / 386 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.1745, allocations: 8 kB / 386 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003584/0.1748, allocations: 180.1 kB / 386.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002918/0.1752, allocations: 157.5 kB / 386.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004924/0.1757, allocations: 241.2 kB / 386.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.54e-06/0.1757, allocations: 4 kB / 386.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0006973/0.1764, allocations: 335.8 kB / 386.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.1764, allocations: 45.58 kB / 386.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-06/0.1764, allocations: 0 / 386.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.048e-05/0.1765, allocations: 28.84 kB / 386.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1767, allocations: 43.89 kB / 387 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.1779, allocations: 1.411 MB / 388.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.1781, allocations: 51.84 kB / 388.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.1782, allocations: 11.94 kB / 388.5 MB, free: 1.336 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.0001389/0.1783, allocations: 192.2 kB / 388.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.1783, allocations: 24 kB / 388.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/0.1784, allocations: 29.81 kB / 388.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1784, allocations: 4 kB / 388.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1784, allocations: 3.938 kB / 388.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.1784, allocations: 0 / 388.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.1787, allocations: 301.4 kB / 389 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1787, allocations: 4 kB / 389 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1789, allocations: 15.98 kB / 389 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.1791, allocations: 76.8 kB / 389.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1791, allocations: 11.98 kB / 389.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/0.1815, allocations: 1.916 MB / 391 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1815, allocations: 0 / 391 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009842/0.1825, allocations: 357.6 kB / 391.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/0.1826, allocations: 104.8 kB / 391.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.1826, allocations: 11.98 kB / 391.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.1828, allocations: 27.97 kB / 391.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.1829, allocations: 23.97 kB / 391.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.183, allocations: 8 kB / 391.5 MB, free: 14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.1832, allocations: 194 kB / 391.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.1832, allocations: 0 / 391.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000513/0.1837, allocations: 123.8 kB / 391.9 MB, free: 13.7 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.0001654/0.1839, allocations: 107.2 kB / 392 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.1855, allocations: 0.7503 MB / 392.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1856, allocations: 0.9375 kB / 392.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004438/0.186, allocations: 243 kB / 392.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.1864, allocations: 48.47 kB / 393 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.1893, allocations: 0.8978 MB / 393.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.1897, allocations: 0.7444 MB / 394.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.1898, allocations: 34.31 kB / 394.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.882e-05/0.1899, allocations: 19.44 kB / 394.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1899, allocations: 0 / 394.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of Templates: time 0.009901/0.1998, allocations: 4.2 MB / 398.9 MB, free: 6.531 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)