Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001274, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.374/1.374, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2453, allocations: 50.54 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004275/0.2496, allocations: 2.482 MB / 411.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.2523, allocations: 1.476 MB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.2525, allocations: 15.94 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007585/0.2533, allocations: 231 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004801/0.2538, allocations: 203 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.2544, allocations: 263.4 kB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005353/0.2549, allocations: 487.7 kB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.2553, allocations: 209.8 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.2555, allocations: 199.2 kB / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.2558, allocations: 207.1 kB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/0.2559, allocations: 39.94 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002497/0.2561, allocations: 131.8 kB / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.2563, allocations: 123.6 kB / 415.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.2565, allocations: 218.7 kB / 415.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000692/0.2572, allocations: 0.563 MB / 415.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2572, allocations: 4 kB / 415.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2572, allocations: 0 / 415.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.2572, allocations: 0 / 415.9 MB, free: 10.51 MB / 334.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.001343/0.2586, allocations: 0.878 MB / 416.8 MB, free: 9.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2586, allocations: 12.03 kB / 416.8 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.993e-05/0.2587, allocations: 74.66 kB / 416.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.259, allocations: 72.53 kB / 416.9 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.2595, allocations: 399.4 kB / 417.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.9e-05/0.2596, allocations: 59.02 kB / 417.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.2597, allocations: 43.98 kB / 417.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/0.2604, allocations: 428.7 kB / 417.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2604, allocations: 3.938 kB / 417.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.2604, allocations: 12 kB / 417.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.2605, allocations: 12.44 kB / 417.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.261, allocations: 277.5 kB / 418.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2629, allocations: 1.678 MB / 419.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005688/0.2634, allocations: 295.8 kB / 420.1 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.2637, allocations: 130.5 kB / 420.2 MB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.222e-05/0.2638, allocations: 7.984 kB / 420.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004556/0.2642, allocations: 320 kB / 420.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.2642, allocations: 0 / 420.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009237/0.2652, allocations: 482.2 kB / 421 MB, free: 5.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.2653, allocations: 166.1 kB / 421.2 MB, free: 4.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005372/0.2658, allocations: 0.4935 MB / 421.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.2659, allocations: 37.7 kB / 421.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.2661, allocations: 240.9 kB / 421.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.646e-05/0.2662, allocations: 87.38 kB / 422 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.2663, allocations: 118.2 kB / 422.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.2665, allocations: 366.7 kB / 422.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.2668, allocations: 117.1 kB / 422.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.2671, allocations: 266.7 kB / 422.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.2677, allocations: 391.2 kB / 423.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.2677, allocations: 4 kB / 423.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007731/0.2685, allocations: 466.5 kB / 423.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.2686, allocations: 37.7 kB / 423.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2686, allocations: 4 kB / 423.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.2686, allocations: 8 kB / 423.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2687, allocations: 47.84 kB / 423.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.2688, allocations: 7.938 kB / 423.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.269, allocations: 56.09 kB / 423.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.269, allocations: 23.98 kB / 423.9 MB, free: 1.949 MB / 334.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.0002675/0.2693, allocations: 244.9 kB / 424.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.2694, allocations: 63.61 kB / 424.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004352/0.2698, allocations: 233.1 kB / 424.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2699, allocations: 8 kB / 424.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2699, allocations: 0 / 424.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2699, allocations: 3.984 kB / 424.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009981/0.2709, allocations: 0.7365 MB / 425.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2709, allocations: 0 / 425.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.641e-05/0.271, allocations: 19.94 kB / 425.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.271, allocations: 0 / 425.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.271, allocations: 11.98 kB / 425.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.271, allocations: 8 kB / 425.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.271, allocations: 0 / 425.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.2718, allocations: 496.6 kB / 425.7 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.2719, allocations: 116.8 kB / 425.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.272, allocations: 19.94 kB / 425.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.2722, allocations: 27.97 kB / 425.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2723, allocations: 43.89 kB / 425.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.2723, allocations: 15.98 kB / 425.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003527/0.2727, allocations: 331.1 kB / 426.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2727, allocations: 0 / 426.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.2731, allocations: 115.7 kB / 426.3 MB, free: 15.36 MB / 350.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.002368/0.2755, allocations: 1.387 MB / 427.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006612/0.2762, allocations: 391.8 kB / 428.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2762, allocations: 0 / 428.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.2765, allocations: 231.2 kB / 428.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.2771, allocations: 97.78 kB / 428.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005134/0.2822, allocations: 4.022 MB / 432.5 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.2827, allocations: 0.8473 MB / 433.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.2829, allocations: 75.56 kB / 433.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.2832, allocations: 155.4 kB / 433.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2832, allocations: 0 / 433.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.3166, allocations: 9.86 MB / 443.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.511/8.827, allocations: 15.36 kB / 443.4 MB, free: 14.31 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)