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.002073/0.002073, allocations: 104.7 kB / 16.62 MB, free: 6.809 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.001717/0.001717, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.834/1.834, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001203/0.001203, allocations: 59.92 kB / 279.5 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1253, allocations: 46.63 MB / 326.2 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.006256/0.1316, allocations: 2.76 MB / 328.9 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.1337, allocations: 0.7099 MB / 329.6 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.134, allocations: 4 kB / 329.6 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002517/0.1343, allocations: 39.7 kB / 329.7 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.1346, allocations: 75.44 kB / 329.7 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.135, allocations: 83.86 kB / 329.8 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.1357, allocations: 354.6 kB / 330.2 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.136, allocations: 84.7 kB / 330.3 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.1363, allocations: 135.5 kB / 330.4 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.1365, allocations: 147.3 kB / 330.5 MB, free: 376 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.1366, allocations: 28 kB / 330.6 MB, free: 348 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.454e-05/0.1366, allocations: 32 kB / 330.6 MB, free: 316 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-05/0.1367, allocations: 67.69 kB / 330.7 MB, free: 248 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.1369, allocations: 151.2 kB / 330.8 MB, free: 96 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.1375, allocations: 323.2 kB / 331.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1375, allocations: 0 / 331.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1375, allocations: 4 kB / 331.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1375, allocations: 4 kB / 331.1 MB, free: 15.77 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.00177/0.1393, allocations: 0.6378 MB / 331.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.1394, allocations: 8.031 kB / 331.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1395, allocations: 32.56 kB / 331.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/0.14, allocations: 275.7 kB / 332.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.14, allocations: 16.81 kB / 332.1 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/0.1401, allocations: 20.38 kB / 332.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008632/0.141, allocations: 255.5 kB / 332.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.141, allocations: 0 / 332.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.141, allocations: 8 kB / 332.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1411, allocations: 4 kB / 332.4 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.1421, allocations: 245.6 kB / 332.6 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.1444, allocations: 0.8816 MB / 333.5 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.1455, allocations: 238.5 kB / 333.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000455/0.146, allocations: 100.8 kB / 333.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.1461, allocations: 4 kB / 333.8 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007688/0.1468, allocations: 177.8 kB / 334 MB, free: 12.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.104e-06/0.1469, allocations: 0 / 334 MB, free: 12.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.003334/0.1502, allocations: 0.6746 MB / 334.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1503, allocations: 110.8 kB / 334.8 MB, free: 11.85 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.1508, allocations: 270.5 kB / 335 MB, free: 11.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.1509, allocations: 37.64 kB / 335.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.151, allocations: 171.9 kB / 335.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.256e-05/0.1511, allocations: 47.38 kB / 335.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.1513, allocations: 45.7 kB / 335.3 MB, free: 11.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.1515, allocations: 334.8 kB / 335.7 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004962/0.152, allocations: 112.7 kB / 335.8 MB, free: 10.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005275/0.1525, allocations: 173.4 kB / 335.9 MB, free: 10.61 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009294/0.1535, allocations: 284.6 kB / 336.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1535, allocations: 0 / 336.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001736/0.1552, allocations: 455.5 kB / 336.7 MB, free: 9.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.1553, allocations: 29.7 kB / 336.7 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1553, allocations: 4 kB / 336.7 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004868/0.1558, allocations: 76.83 kB / 336.8 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.1561, allocations: 44.17 kB / 336.8 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/0.16, allocations: 2.017 MB / 338.8 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.1605, allocations: 55.64 kB / 338.9 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.1606, allocations: 12.06 kB / 338.9 MB, free: 7.453 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004861/0.1611, allocations: 176.1 kB / 339.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004309/0.1615, allocations: 165.4 kB / 339.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007185/0.1623, allocations: 241.2 kB / 339.5 MB, free: 6.812 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.128e-06/0.1623, allocations: 4 kB / 339.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.001067/0.1634, allocations: 326.7 kB / 339.8 MB, free: 6.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.1634, allocations: 33.69 kB / 339.8 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1634, allocations: 8.062 kB / 339.8 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.1636, allocations: 29.09 kB / 339.9 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1639, allocations: 47.97 kB / 339.9 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.1653, allocations: 1.41 MB / 341.3 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004203/0.1657, allocations: 47.75 kB / 341.4 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.1657, allocations: 4 kB / 341.4 MB, free: 4.754 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.0001956/0.1659, allocations: 204.5 kB / 341.6 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.166, allocations: 31.7 kB / 341.6 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.085e-05/0.1661, allocations: 17.84 kB / 341.6 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1661, allocations: 4 kB / 341.6 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1661, allocations: 3.938 kB / 341.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1661, allocations: 3.984 kB / 341.6 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.1665, allocations: 289.5 kB / 341.9 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1665, allocations: 4 kB / 341.9 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1667, allocations: 23.91 kB / 341.9 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003639/0.167, allocations: 80.8 kB / 342 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1671, allocations: 0 / 342 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.1704, allocations: 1.923 MB / 343.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1705, allocations: 0 / 343.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.1719, allocations: 369.9 kB / 344.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.1721, allocations: 96.84 kB / 344.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.1721, allocations: 8 kB / 344.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.1725, allocations: 31.95 kB / 344.4 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/0.1726, allocations: 19.98 kB / 344.5 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.1726, allocations: 0 / 344.5 MB, free: 1.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.1729, allocations: 197.9 kB / 344.7 MB, free: 1.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1729, allocations: 4 kB / 344.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008739/0.1738, allocations: 127.7 kB / 344.8 MB, free: 1.105 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.0002032/0.174, allocations: 99.25 kB / 344.9 MB, free: 1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.1765, allocations: 0.7535 MB / 345.6 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.1765, allocations: 0 / 345.6 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.1772, allocations: 239.5 kB / 345.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005363/0.1778, allocations: 56.55 kB / 345.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003794/0.1816, allocations: 0.9838 MB / 346.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.1822, allocations: 0.7522 MB / 347.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002228/0.1824, allocations: 22.3 kB / 347.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.491e-05/0.1825, allocations: 23.44 kB / 347.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.853e-06/0.1825, allocations: 0 / 347.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Templates: time 0.0138/0.1963, allocations: 4.04 MB / 351.7 MB, free: 10.02 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)