Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01084/0.01084, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.002141/0.002141, allocations: 188.5 kB / 16.67 MB, free: 6.367 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.007/2.007, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.001308/0.001308, allocations: 55.95 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1464, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005214/0.1517, allocations: 2.711 MB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.1535, allocations: 0.7173 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1537, allocations: 4 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.154, allocations: 43.58 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.1543, allocations: 95.25 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.1546, allocations: 87.81 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005124/0.1551, allocations: 362.4 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.1554, allocations: 92.58 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1556, allocations: 139.4 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1558, allocations: 147.4 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.72e-05/0.1559, allocations: 35.94 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.156, allocations: 28 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1561, allocations: 59.83 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1563, allocations: 147.2 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.1567, allocations: 330.7 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.1568, allocations: 0 / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1568, allocations: 3.938 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1568, allocations: 0 / 378.2 MB, free: 12.29 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.001496/0.1583, allocations: 0.6455 MB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.1583, allocations: 8.031 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.805e-05/0.1584, allocations: 40.75 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.159, allocations: 283.8 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.159, allocations: 20.8 kB / 379.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.159, allocations: 16.38 kB / 379.2 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006478/0.1597, allocations: 251.5 kB / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1597, allocations: 4 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.1598, allocations: 4 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1598, allocations: 8 kB / 379.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007432/0.1605, allocations: 241.6 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.1623, allocations: 0.8741 MB / 380.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008396/0.1632, allocations: 238.6 kB / 380.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.1635, allocations: 100.8 kB / 380.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.1636, allocations: 4 kB / 380.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004928/0.1641, allocations: 182 kB / 381.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.807e-06/0.1641, allocations: 4 kB / 381.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002476/0.1666, allocations: 0.6708 MB / 381.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1667, allocations: 106.8 kB / 381.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.167, allocations: 270.6 kB / 382.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1671, allocations: 29.7 kB / 382.1 MB, free: 8.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.1673, allocations: 176.1 kB / 382.3 MB, free: 7.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.897e-05/0.1674, allocations: 47.67 kB / 382.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.397e-05/0.1675, allocations: 45.61 kB / 382.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.1677, allocations: 334.8 kB / 382.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/0.1681, allocations: 100.8 kB / 382.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003845/0.1685, allocations: 171.4 kB / 383 MB, free: 7.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.1692, allocations: 256.5 kB / 383.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1692, allocations: 4 kB / 383.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001203/0.1704, allocations: 431.8 kB / 383.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.784e-05/0.1705, allocations: 41.62 kB / 383.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1705, allocations: 8.016 kB / 383.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.1709, allocations: 72.81 kB / 383.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.1711, allocations: 43.89 kB / 383.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.1739, allocations: 1.963 MB / 385.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.1742, allocations: 51.8 kB / 385.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.1743, allocations: 16.06 kB / 385.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003341/0.1746, allocations: 176.1 kB / 386 MB, free: 3.906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003062/0.1749, allocations: 143.7 kB / 386.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000506/0.1755, allocations: 227.5 kB / 386.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.458e-06/0.1755, allocations: 3.938 kB / 386.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007199/0.1762, allocations: 315.9 kB / 386.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.1762, allocations: 37.59 kB / 386.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/0.1762, allocations: 4 kB / 386.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.531e-05/0.1763, allocations: 32.84 kB / 386.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.1765, allocations: 39.91 kB / 386.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.1778, allocations: 1.603 MB / 388.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.1781, allocations: 47.92 kB / 388.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1781, allocations: 4 kB / 388.5 MB, free: 1.246 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0001544/0.1783, allocations: 204.4 kB / 388.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.1783, allocations: 19.86 kB / 388.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.731e-05/0.1783, allocations: 25.83 kB / 388.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1784, allocations: 144 / 388.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1784, allocations: 11.92 kB / 388.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1784, allocations: 0 / 388.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.1787, allocations: 309.3 kB / 389 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1787, allocations: 0 / 389 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.1788, allocations: 23.97 kB / 389.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002555/0.1791, allocations: 76.8 kB / 389.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1791, allocations: 4 kB / 389.1 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002354/0.1815, allocations: 1.758 MB / 390.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1815, allocations: 0 / 390.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1825, allocations: 357.6 kB / 391.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.898e-05/0.1826, allocations: 97.16 kB / 391.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.1827, allocations: 15.98 kB / 391.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.1829, allocations: 23.97 kB / 391.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.183, allocations: 27.97 kB / 391.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.183, allocations: 11.94 kB / 391.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001935/0.1832, allocations: 190 kB / 391.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1832, allocations: 0 / 391.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005143/0.1838, allocations: 123.8 kB / 391.7 MB, free: 13.76 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.0001763/0.184, allocations: 107.2 kB / 391.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.1854, allocations: 0.6798 MB / 392.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1855, allocations: 4 kB / 392.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.1859, allocations: 234.5 kB / 392.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.1863, allocations: 49.58 kB / 392.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009805/0.1873, allocations: 458.9 kB / 393.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.1876, allocations: 0.7404 MB / 394 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1878, allocations: 26.28 kB / 394 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.1878, allocations: 27.42 kB / 394 MB, free: 11.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1878, allocations: 0 / 394 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Templates: time 0.008387/0.1962, allocations: 4.224 MB / 398.2 MB, free: 7.09 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)