Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008751/0.008751, allocations: 100.6 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.002235/0.002235, allocations: 197.3 kB / 16.67 MB, free: 5.973 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.5 MB, free: 12.24 MB / 190.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.001116/0.001116, allocations: 47.92 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.117, allocations: 46.62 MB / 373.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004311/0.1213, allocations: 2.436 MB / 375.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.1235, allocations: 1.255 MB / 376.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.1237, allocations: 7.938 kB / 376.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007768/0.1245, allocations: 234.9 kB / 377.1 MB, free: 0.6094 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.0003605/0.1249, allocations: 159.2 kB / 377.3 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.1255, allocations: 267.4 kB / 377.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2751/0.4006, allocations: 477.8 kB / 378 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008996/0.4016, allocations: 208.4 kB / 378.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006794/0.4023, allocations: 195.6 kB / 378.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00055/0.4029, allocations: 211.9 kB / 378.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00018/0.4031, allocations: 33.78 kB / 378.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005911/0.4037, allocations: 127.4 kB / 378.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.404, allocations: 126.9 kB / 378.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004894/0.4045, allocations: 218.1 kB / 379.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00169/0.4062, allocations: 0.5681 MB / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4062, allocations: 0.6562 kB / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4062, allocations: 0.5 kB / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.878e-05/0.4063, allocations: 0.5312 kB / 379.6 MB, free: 10.14 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.003127/0.4094, allocations: 0.8622 MB / 380.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.187e-05/0.4095, allocations: 11.41 kB / 380.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003755/0.4099, allocations: 63.38 kB / 380.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.411, allocations: 403.1 kB / 381 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.4111, allocations: 59.11 kB / 381 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.4113, allocations: 40.66 kB / 381.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.4127, allocations: 430 kB / 381.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.4127, allocations: 4 kB / 381.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.81e-05/0.4128, allocations: 20.75 kB / 381.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.558e-05/0.4129, allocations: 12.56 kB / 381.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008767/0.4138, allocations: 265 kB / 381.8 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.4171, allocations: 1.672 MB / 383.5 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008268/0.418, allocations: 298.7 kB / 383.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.4183, allocations: 124.6 kB / 383.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-05/0.4184, allocations: 10.88 kB / 383.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005941/0.419, allocations: 336.9 kB / 384.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/0.419, allocations: 0 / 384.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001521/0.4205, allocations: 483.2 kB / 384.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.4207, allocations: 170.1 kB / 384.8 MB, free: 7.055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.4218, allocations: 489.7 kB / 385.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.4218, allocations: 40.03 kB / 385.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.4221, allocations: 230.4 kB / 385.6 MB, free: 6.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.4222, allocations: 94.97 kB / 385.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.4225, allocations: 116.2 kB / 385.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4227, allocations: 360.7 kB / 386.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/0.4231, allocations: 116.7 kB / 386.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004986/0.4236, allocations: 264.8 kB / 386.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008357/0.4245, allocations: 427.2 kB / 386.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.4245, allocations: 7.719 kB / 386.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009401/0.4254, allocations: 478.8 kB / 387.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.4255, allocations: 36.53 kB / 387.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4255, allocations: 3.781 kB / 387.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.4255, allocations: 10.75 kB / 387.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.4257, allocations: 44.02 kB / 387.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.4257, allocations: 11.56 kB / 387.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.4261, allocations: 56.98 kB / 387.6 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.4261, allocations: 26.11 kB / 387.6 MB, free: 5.316 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.0002948/0.4264, allocations: 254.2 kB / 387.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.743e-05/0.4265, allocations: 47.2 kB / 387.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005379/0.4271, allocations: 265.8 kB / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4271, allocations: 4.781 kB / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.4271, allocations: 1.766 kB / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.4271, allocations: 2.625 kB / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.4285, allocations: 0.7814 MB / 388.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4285, allocations: 1.719 kB / 388.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.822e-05/0.4286, allocations: 15.55 kB / 389 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.4286, allocations: 2.828 kB / 389 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.4286, allocations: 12.02 kB / 389 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.4286, allocations: 2.703 kB / 389 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4286, allocations: 8.75 kB / 389 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008003/0.4294, allocations: 0.5202 MB / 389.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.4296, allocations: 120.3 kB / 389.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.4296, allocations: 14.77 kB / 389.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.4299, allocations: 22.94 kB / 389.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.43, allocations: 45.58 kB / 389.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.4301, allocations: 15.5 kB / 389.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00046/0.4305, allocations: 322.5 kB / 390 MB, free: 3.902 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4305, allocations: 4 kB / 390 MB, free: 3.898 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006417/0.4312, allocations: 119.4 kB / 390.2 MB, free: 3.867 MB / 318.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.001192/0.4324, allocations: 462.3 kB / 390.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008505/0.4332, allocations: 402.9 kB / 391 MB, free: 3.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.4333, allocations: 0 / 391 MB, free: 3.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.4337, allocations: 232.8 kB / 391.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006384/0.4343, allocations: 90.91 kB / 391.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.436, allocations: 0.8044 MB / 392.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.4364, allocations: 0.838 MB / 393 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000271/0.4367, allocations: 78.05 kB / 393 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.4369, allocations: 44 kB / 393.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of SimCode: time 9.81e-07/0.4369, allocations: 0 / 393.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of Templates: time 0.0135/0.4504, allocations: 5.521 MB / 398.6 MB, free: 0.8086 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)