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.008048/0.008048, allocations: 102.9 kB / 15.74 MB, free: 6.449 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.001507/0.001507, allocations: 199.1 kB / 16.68 MB, free: 6.352 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.551/1.551, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001342/0.001342, allocations: 54.48 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1261, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005781/0.132, allocations: 2.433 MB / 375.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.1349, allocations: 1.252 MB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.1353, allocations: 11.94 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000852/0.1362, allocations: 238.9 kB / 377.1 MB, free: 13.34 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.0004354/0.1366, allocations: 163.2 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007624/0.1374, allocations: 275.3 kB / 377.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005889/0.138, allocations: 479.7 kB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000422/0.1385, allocations: 221.6 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003368/0.1388, allocations: 191.2 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.1391, allocations: 211 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.543e-05/0.1392, allocations: 36 kB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000351/0.1396, allocations: 127.9 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.1398, allocations: 127.6 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.14, allocations: 214.7 kB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008047/0.1408, allocations: 0.5638 MB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1409, allocations: 0 / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1409, allocations: 0 / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1409, allocations: 0 / 379.7 MB, free: 10.77 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.001857/0.1427, allocations: 0.8664 MB / 380.5 MB, free: 9.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1428, allocations: 8.031 kB / 380.5 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.1429, allocations: 64.59 kB / 380.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.1437, allocations: 395.3 kB / 381 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.045e-05/0.1438, allocations: 55.27 kB / 381 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.1439, allocations: 47.92 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007338/0.1447, allocations: 428.6 kB / 381.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.1447, allocations: 4 kB / 381.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.786e-05/0.1447, allocations: 20 kB / 381.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.041e-05/0.1448, allocations: 12.44 kB / 381.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.1453, allocations: 261.5 kB / 381.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1477, allocations: 1.674 MB / 383.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007087/0.1484, allocations: 292 kB / 383.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.1487, allocations: 138.5 kB / 383.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.396e-05/0.1487, allocations: 8.062 kB / 383.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005556/0.1493, allocations: 335.9 kB / 384.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.434e-06/0.1493, allocations: 0 / 384.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001203/0.1505, allocations: 486.8 kB / 384.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.1507, allocations: 166.1 kB / 384.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007631/0.1515, allocations: 493.4 kB / 385.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.1515, allocations: 37.7 kB / 385.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.1517, allocations: 240.9 kB / 385.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1519, allocations: 95.34 kB / 385.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.152, allocations: 114.2 kB / 385.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002953/0.1523, allocations: 354.7 kB / 386.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.1526, allocations: 117.1 kB / 386.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.1531, allocations: 266.7 kB / 386.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006217/0.1537, allocations: 422.5 kB / 387 MB, free: 2.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.1538, allocations: 0 / 387 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000858/0.1546, allocations: 486.4 kB / 387.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.1547, allocations: 33.7 kB / 387.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1547, allocations: 4 kB / 387.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.1548, allocations: 12.41 kB / 387.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.1549, allocations: 47.91 kB / 387.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.1549, allocations: 7.938 kB / 387.5 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.1552, allocations: 55.7 kB / 387.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-05/0.1553, allocations: 24 kB / 387.6 MB, free: 2.273 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.0003705/0.1556, allocations: 256.5 kB / 387.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.1557, allocations: 43.72 kB / 387.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005977/0.1563, allocations: 261.6 kB / 388.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.1564, allocations: 4 kB / 388.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.1564, allocations: 3.938 kB / 388.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1564, allocations: 4 kB / 388.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.1578, allocations: 0.7715 MB / 389 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1579, allocations: 4 kB / 389 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.1579, allocations: 19.92 kB / 389 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.1579, allocations: 4 kB / 389 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.158, allocations: 11.98 kB / 389 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.158, allocations: 7.938 kB / 389 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.158, allocations: 0 / 389 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008047/0.1588, allocations: 0.5218 MB / 389.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.159, allocations: 120.8 kB / 389.6 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.349e-05/0.159, allocations: 11.98 kB / 389.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.1592, allocations: 27.86 kB / 389.7 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.1594, allocations: 43.81 kB / 389.7 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.1594, allocations: 23.98 kB / 389.7 MB, free: 24 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003912/0.1598, allocations: 327.1 kB / 390.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1598, allocations: 0 / 390.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.1604, allocations: 123.7 kB / 390.2 MB, free: 15.59 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.001168/0.1616, allocations: 458.8 kB / 390.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000726/0.1623, allocations: 407.6 kB / 391 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1623, allocations: 0 / 391 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003458/0.1627, allocations: 239.2 kB / 391.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005486/0.1632, allocations: 85.7 kB / 391.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.1648, allocations: 0.7928 MB / 392.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.1653, allocations: 0.84 MB / 393 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.1655, allocations: 83.56 kB / 393.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1656, allocations: 43.42 kB / 393.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1657, allocations: 0 / 393.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Templates: time 0.01172/0.1774, allocations: 5.504 MB / 398.6 MB, free: 7.051 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)