Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.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.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007001/0.007001, allocations: 101.4 kB / 15.73 MB, free: 6.023 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.001342/0.001342, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.514/1.514, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001954/0.001955, allocations: 50.36 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1433, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005609/0.1489, allocations: 2.437 MB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.1519, allocations: 1.248 MB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004487/0.1524, allocations: 7.938 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009993/0.1535, allocations: 246.9 kB / 377.1 MB, free: 13.35 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007148/0.1542, allocations: 159.2 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009927/0.1552, allocations: 275.3 kB / 377.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006669/0.1559, allocations: 475.7 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004469/0.1564, allocations: 217.6 kB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.1566, allocations: 183.3 kB / 378.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.1569, allocations: 218.9 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/0.157, allocations: 40 kB / 378.6 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.1573, allocations: 127.9 kB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.1574, allocations: 119.6 kB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.1576, allocations: 214.8 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.1584, allocations: 0.5643 MB / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.1584, allocations: 3.984 kB / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1584, allocations: 0 / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1584, allocations: 0 / 379.7 MB, free: 10.79 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001502/0.16, allocations: 0.8437 MB / 380.5 MB, free: 9.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.16, allocations: 12.03 kB / 380.5 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.1601, allocations: 56.28 kB / 380.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.1607, allocations: 395 kB / 381 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.855e-05/0.1608, allocations: 55.27 kB / 381 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.1609, allocations: 47.94 kB / 381.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006719/0.1615, allocations: 440.6 kB / 381.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1616, allocations: 7.938 kB / 381.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.1616, allocations: 12 kB / 381.5 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.1616, allocations: 12.44 kB / 381.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.1621, allocations: 273.5 kB / 381.8 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.1642, allocations: 1.659 MB / 383.4 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.1648, allocations: 301 kB / 383.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.165, allocations: 130.5 kB / 383.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.1651, allocations: 11.91 kB / 383.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004597/0.1655, allocations: 332 kB / 384.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.184e-06/0.1656, allocations: 0 / 384.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009791/0.1665, allocations: 486.7 kB / 384.7 MB, free: 5.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/0.1666, allocations: 166.2 kB / 384.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005367/0.1672, allocations: 489.3 kB / 385.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1672, allocations: 37.7 kB / 385.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1674, allocations: 236.5 kB / 385.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.954e-05/0.1675, allocations: 83.03 kB / 385.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.1677, allocations: 122.1 kB / 385.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1678, allocations: 358.7 kB / 386.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.1681, allocations: 117.1 kB / 386.2 MB, free: 3.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/0.1684, allocations: 262.7 kB / 386.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005323/0.1689, allocations: 418.5 kB / 386.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1689, allocations: 0 / 386.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007729/0.1697, allocations: 482.5 kB / 387.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.1698, allocations: 33.7 kB / 387.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.1698, allocations: 4.469 kB / 387.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.1698, allocations: 8 kB / 387.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.17, allocations: 51.84 kB / 387.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.17, allocations: 7.938 kB / 387.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.1702, allocations: 55.52 kB / 387.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.1703, allocations: 27.98 kB / 387.6 MB, free: 2.328 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002666/0.1706, allocations: 248.6 kB / 387.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.1706, allocations: 39.53 kB / 387.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005425/0.1712, allocations: 277.2 kB / 388.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1712, allocations: 4 kB / 388.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.1712, allocations: 0 / 388.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1712, allocations: 4 kB / 388.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.1723, allocations: 0.7753 MB / 388.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1723, allocations: 7.938 kB / 388.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.375e-05/0.1724, allocations: 15.92 kB / 388.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1724, allocations: 4 kB / 388.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1725, allocations: 8 kB / 388.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.1725, allocations: 7.938 kB / 388.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1725, allocations: 0 / 388.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008166/0.1733, allocations: 0.5288 MB / 389.5 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-05/0.1734, allocations: 116.5 kB / 389.6 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.1735, allocations: 16 kB / 389.6 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.1737, allocations: 31.84 kB / 389.6 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.1738, allocations: 39.81 kB / 389.7 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.1739, allocations: 19.98 kB / 389.7 MB, free: 76 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003696/0.1742, allocations: 319.1 kB / 390 MB, free: 15.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1743, allocations: 4 kB / 390 MB, free: 15.76 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005066/0.1748, allocations: 123.9 kB / 390.1 MB, free: 15.64 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001074/0.1758, allocations: 447.1 kB / 390.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007302/0.1766, allocations: 411.5 kB / 391 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1766, allocations: 0 / 391 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.1769, allocations: 235.2 kB / 391.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.1776, allocations: 93.62 kB / 391.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.1797, allocations: 0.7744 MB / 392.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006324/0.1804, allocations: 0.84 MB / 392.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.1807, allocations: 79.56 kB / 393 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.1808, allocations: 43.42 kB / 393 MB, free: 12.65 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1808, allocations: 0 / 393 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Templates: time 0.01155/0.1924, allocations: 5.653 MB / 398.7 MB, free: 6.984 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)