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.009583/0.009583, allocations: 103.5 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.001961/0.001961, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.116/2.116, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001335/0.001335, allocations: 51.06 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1342, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004306/0.1385, allocations: 2.711 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.1399, allocations: 0.7251 MB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.1401, allocations: 7.938 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.1403, allocations: 39.58 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002076/0.1405, allocations: 95.25 kB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.1408, allocations: 91.81 kB / 376.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.1413, allocations: 366.4 kB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.1415, allocations: 84.64 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.1417, allocations: 139.4 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.1419, allocations: 147.4 kB / 377.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.049e-05/0.1419, allocations: 31.94 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.7e-05/0.142, allocations: 32 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.1421, allocations: 59.83 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1422, allocations: 155.2 kB / 377.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.1426, allocations: 315 kB / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1426, allocations: 0 / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1426, allocations: 3.938 kB / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1426, allocations: 0 / 378.2 MB, free: 12.31 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.001273/0.1439, allocations: 0.638 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.144, allocations: 8.031 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.263e-05/0.1441, allocations: 36.55 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004458/0.1445, allocations: 283.6 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.1445, allocations: 24.81 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.1446, allocations: 16.38 kB / 379.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000603/0.1452, allocations: 251.5 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1452, allocations: 0 / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.1453, allocations: 11.98 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.1453, allocations: 4 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006734/0.146, allocations: 241.6 kB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.1475, allocations: 0.8738 MB / 380.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007615/0.1483, allocations: 242.6 kB / 380.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.1486, allocations: 100.8 kB / 380.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.1486, allocations: 0 / 380.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004433/0.149, allocations: 186 kB / 381.1 MB, free: 9.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.026e-06/0.1491, allocations: 0 / 381.1 MB, free: 9.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002226/0.1513, allocations: 0.6746 MB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.883e-05/0.1514, allocations: 106.8 kB / 381.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.1518, allocations: 270.5 kB / 382.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.1518, allocations: 25.7 kB / 382.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1519, allocations: 171.9 kB / 382.3 MB, free: 7.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.75e-05/0.152, allocations: 43.44 kB / 382.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.1521, allocations: 49.55 kB / 382.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1522, allocations: 330.8 kB / 382.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.1526, allocations: 108.8 kB / 382.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000352/0.1529, allocations: 171.4 kB / 383 MB, free: 7.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006194/0.1536, allocations: 259.5 kB / 383.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1536, allocations: 0 / 383.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001144/0.1547, allocations: 431.6 kB / 383.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.1548, allocations: 37.7 kB / 383.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1548, allocations: 4 kB / 383.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003835/0.1552, allocations: 76.83 kB / 383.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.1554, allocations: 39.91 kB / 383.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.158, allocations: 1.97 MB / 385.8 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.1584, allocations: 39.84 kB / 385.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.1584, allocations: 12 kB / 385.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003287/0.1587, allocations: 176.1 kB / 386 MB, free: 3.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002815/0.159, allocations: 143.7 kB / 386.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005553/0.1596, allocations: 227.5 kB / 386.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.378e-06/0.1596, allocations: 7.938 kB / 386.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0006699/0.1603, allocations: 311.6 kB / 386.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.1603, allocations: 41.69 kB / 386.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.1603, allocations: 192 / 386.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001012/0.1605, allocations: 32.89 kB / 386.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.1606, allocations: 43.89 kB / 386.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.1618, allocations: 1.607 MB / 388.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.1621, allocations: 39.91 kB / 388.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1622, allocations: 12.06 kB / 388.4 MB, free: 1.281 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.0001546/0.1623, allocations: 200.1 kB / 388.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.1624, allocations: 27.7 kB / 388.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.1624, allocations: 21.84 kB / 388.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1624, allocations: 4 kB / 388.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.1624, allocations: 3.938 kB / 388.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1625, allocations: 3.984 kB / 388.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000315/0.1628, allocations: 293.4 kB / 389 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.1628, allocations: 4 kB / 389 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1629, allocations: 27.97 kB / 389 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002667/0.1632, allocations: 76.8 kB / 389.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.1632, allocations: 144 / 389.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/0.1656, allocations: 1.765 MB / 390.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1656, allocations: 0 / 390.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1666, allocations: 361.4 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.546e-05/0.1667, allocations: 96.83 kB / 391.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.1668, allocations: 8 kB / 391.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.167, allocations: 32.14 kB / 391.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.925e-05/0.1671, allocations: 27.91 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1671, allocations: 11.94 kB / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002139/0.1673, allocations: 186 kB / 391.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1674, allocations: 4 kB / 391.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005698/0.1679, allocations: 123.7 kB / 391.7 MB, free: 13.79 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.0001929/0.1681, allocations: 103.2 kB / 391.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.1697, allocations: 0.6833 MB / 392.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.1697, allocations: 0.6875 kB / 392.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004593/0.1701, allocations: 230.5 kB / 392.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.1705, allocations: 44.39 kB / 392.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1717, allocations: 459.6 kB / 393.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.1721, allocations: 0.7482 MB / 393.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.1723, allocations: 22.3 kB / 394 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.616e-05/0.1724, allocations: 23.44 kB / 394 MB, free: 11.37 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.1724, allocations: 0 / 394 MB, free: 11.37 MB / 334.1 MB Notification: Performance of Templates: time 0.01028/0.1826, allocations: 4.229 MB / 398.2 MB, free: 7.133 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)