Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001343/0.001344, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008601/0.0008601, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.431e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07772/0.07776, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3586, allocations: 82.55 MB / 452.7 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.3589, allocations: 69.34 kB / 452.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02482/0.3837, allocations: 9.062 MB / 461.8 MB, free: 3.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3837, allocations: 0 / 461.8 MB, free: 3.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.3838, allocations: 12 kB / 461.8 MB, free: 3.02 MB / 330.7 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.00113/0.3849, allocations: 0.7363 MB / 462.5 MB, free: 2.258 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.385, allocations: 8.031 kB / 462.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.236e-05/0.3851, allocations: 72.78 kB / 462.6 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.3852, allocations: 59.34 kB / 462.7 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000631/0.3859, allocations: 383.3 kB / 463 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.3859, allocations: 66.44 kB / 463.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.386, allocations: 40 kB / 463.1 MB, free: 1.648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.3866, allocations: 413.9 kB / 463.5 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3866, allocations: 0 / 463.5 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.3867, allocations: 15.98 kB / 463.6 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.864e-05/0.3867, allocations: 20.44 kB / 463.6 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.3871, allocations: 241.5 kB / 463.8 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.3891, allocations: 1.675 MB / 465.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004779/0.3896, allocations: 291.8 kB / 465.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.3898, allocations: 118.6 kB / 465.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.541e-05/0.3898, allocations: 12.22 kB / 465.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.3902, allocations: 316.6 kB / 466.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 4.558e-06/0.3903, allocations: 7.984 kB / 466.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007189/0.391, allocations: 372.1 kB / 466.6 MB, free: 14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.3911, allocations: 170.1 kB / 466.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005261/0.3916, allocations: 434.5 kB / 467.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.3917, allocations: 45.69 kB / 467.2 MB, free: 13.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.3919, allocations: 224.7 kB / 467.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.3919, allocations: 86.95 kB / 467.5 MB, free: 13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/0.392, allocations: 8 kB / 467.5 MB, free: 13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3922, allocations: 358.8 kB / 467.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.3924, allocations: 109.1 kB / 468 MB, free: 12.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.3927, allocations: 258.7 kB / 468.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.393, allocations: 155.4 kB / 468.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.393, allocations: 0 / 468.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006839/0.3937, allocations: 470.2 kB / 468.9 MB, free: 11.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.3937, allocations: 37.69 kB / 468.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3937, allocations: 4 kB / 468.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3937, allocations: 11.95 kB / 468.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3939, allocations: 39.86 kB / 468.9 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.3939, allocations: 8.469 kB / 469 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.3942, allocations: 55.75 kB / 469 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.361e-05/0.3942, allocations: 20 kB / 469 MB, free: 11.41 MB / 346.7 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001588/0.3944, allocations: 191.8 kB / 469.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.594e-05/0.3945, allocations: 43.53 kB / 469.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006775/0.3951, allocations: 407.5 kB / 469.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3952, allocations: 7.953 kB / 469.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3952, allocations: 0 / 469.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3952, allocations: 7.984 kB / 469.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.3962, allocations: 0.7869 MB / 470.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3962, allocations: 3.938 kB / 470.5 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.677e-05/0.3963, allocations: 19.92 kB / 470.5 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.291e-06/0.3963, allocations: 4 kB / 470.5 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.3964, allocations: 11.98 kB / 470.5 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3964, allocations: 4 kB / 470.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3964, allocations: 0 / 470.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006523/0.397, allocations: 0.5259 MB / 471 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.3972, allocations: 124.7 kB / 471.2 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.3972, allocations: 15.94 kB / 471.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.3974, allocations: 31.98 kB / 471.2 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3976, allocations: 35.94 kB / 471.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.759e-05/0.3976, allocations: 19.98 kB / 471.3 MB, free: 9.031 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003293/0.3979, allocations: 317.2 kB / 471.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.398, allocations: 0 / 471.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004424/0.3984, allocations: 112.2 kB / 471.7 MB, free: 8.613 MB / 346.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001758/0.4002, allocations: 1.535 MB / 473.2 MB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005787/0.4008, allocations: 391.5 kB / 473.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4008, allocations: 0 / 473.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.4011, allocations: 247.2 kB / 473.8 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.4015, allocations: 78.55 kB / 473.9 MB, free: 6.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.4029, allocations: 0.7136 MB / 474.6 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.4033, allocations: 0.8559 MB / 475.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.4035, allocations: 83.45 kB / 475.6 MB, free: 4.598 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/0.4037, allocations: 159.4 kB / 475.7 MB, free: 4.441 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4037, allocations: 4 kB / 475.7 MB, free: 4.438 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02272/0.4265, allocations: 9.242 MB / 485 MB, free: 11.18 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.4267, allocations: 178.5 kB / 485.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.376, allocations: 0 / 485.1 MB, free: 10.95 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat