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.01007/0.01007, allocations: 101.1 kB / 15.73 MB, free: 6.473 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.001676/0.001676, allocations: 195 kB / 16.67 MB, free: 6.379 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.525/1.525, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.00112/0.00112, allocations: 44.25 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004236/0.1179, allocations: 2.433 MB / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.1206, allocations: 1.252 MB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.121, allocations: 7.938 kB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008776/0.1219, allocations: 242.9 kB / 377.1 MB, free: 13.36 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.0004214/0.1223, allocations: 159.1 kB / 377.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007801/0.1231, allocations: 271.4 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005459/0.1237, allocations: 479.7 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003685/0.1241, allocations: 217.6 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002137/0.1243, allocations: 191.2 kB / 378.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.1245, allocations: 219 kB / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.568e-05/0.1246, allocations: 32 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.1248, allocations: 123.9 kB / 378.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.125, allocations: 127.5 kB / 378.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.1252, allocations: 210.7 kB / 379.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007375/0.126, allocations: 0.5682 MB / 379.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.126, allocations: 0 / 379.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.126, allocations: 4 kB / 379.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.126, allocations: 0 / 379.7 MB, free: 10.8 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.001613/0.1276, allocations: 0.8398 MB / 380.5 MB, free: 9.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1277, allocations: 8.031 kB / 380.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.1278, allocations: 56.28 kB / 380.6 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005575/0.1284, allocations: 403 kB / 381 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.613e-05/0.1284, allocations: 59.27 kB / 381 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.1285, allocations: 43.94 kB / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006449/0.1292, allocations: 432.6 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1292, allocations: 0 / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.1292, allocations: 20 kB / 381.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.1293, allocations: 12.44 kB / 381.5 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.1297, allocations: 261.5 kB / 381.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.1318, allocations: 1.67 MB / 383.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.1325, allocations: 301 kB / 383.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.1328, allocations: 130.5 kB / 383.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.123e-05/0.1329, allocations: 23.97 kB / 383.9 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005014/0.1334, allocations: 320 kB / 384.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.703e-06/0.1334, allocations: 0 / 384.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001031/0.1344, allocations: 486.5 kB / 384.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.1345, allocations: 166.2 kB / 384.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005552/0.1351, allocations: 485.3 kB / 385.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.334e-05/0.1352, allocations: 41.7 kB / 385.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.1354, allocations: 236.5 kB / 385.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.1354, allocations: 75.03 kB / 385.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.1356, allocations: 122.1 kB / 385.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1358, allocations: 362.7 kB / 386.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.136, allocations: 121.1 kB / 386.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.1363, allocations: 266.9 kB / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.1368, allocations: 422.5 kB / 386.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1369, allocations: 4 kB / 386.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007466/0.1376, allocations: 486.7 kB / 387.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.1377, allocations: 33.7 kB / 387.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1377, allocations: 4 kB / 387.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.1377, allocations: 4 kB / 387.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1378, allocations: 47.84 kB / 387.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1379, allocations: 8 kB / 387.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.1381, allocations: 55.52 kB / 387.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.1382, allocations: 20.2 kB / 387.6 MB, free: 2.348 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.0002748/0.1384, allocations: 252.6 kB / 387.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.1385, allocations: 43.53 kB / 387.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005021/0.139, allocations: 277.1 kB / 388.1 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1391, allocations: 4 kB / 388.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.1391, allocations: 4 kB / 388.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1391, allocations: 0 / 388.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.1402, allocations: 0.7792 MB / 388.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1403, allocations: 0 / 388.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.066e-05/0.1403, allocations: 23.92 kB / 388.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1403, allocations: 0 / 388.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.1404, allocations: 12 kB / 388.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.1404, allocations: 3.938 kB / 388.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1404, allocations: 7.938 kB / 389 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007659/0.1412, allocations: 0.5133 MB / 389.5 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.1413, allocations: 124.5 kB / 389.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.1414, allocations: 8 kB / 389.6 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.1416, allocations: 27.91 kB / 389.6 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.1417, allocations: 47.75 kB / 389.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.1418, allocations: 27.92 kB / 389.7 MB, free: 84 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003433/0.1421, allocations: 319.1 kB / 390 MB, free: 15.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1421, allocations: 0 / 390 MB, free: 15.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004891/0.1426, allocations: 119.9 kB / 390.1 MB, free: 15.66 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.001118/0.1438, allocations: 455.1 kB / 390.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007062/0.1445, allocations: 391.2 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.1445, allocations: 3.938 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.1448, allocations: 240.1 kB / 391.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005615/0.1454, allocations: 97.98 kB / 391.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1468, allocations: 0.7739 MB / 392.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.1474, allocations: 0.8439 MB / 392.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.1476, allocations: 75.25 kB / 393 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.1477, allocations: 43.42 kB / 393 MB, free: 12.66 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1477, allocations: 0 / 393 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Templates: time 0.01094/0.1586, allocations: 5.508 MB / 398.5 MB, free: 7.145 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)