Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008555/0.0008556, allocations: 90.61 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.417e-05/4.421e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09203, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3121/0.4042, allocations: 83.79 MB / 478.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.4045, allocations: 75.95 kB / 478.2 MB, free: 3.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02561/0.4301, allocations: 9.216 MB / 487.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4301, allocations: 3.938 kB / 487.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.825e-05/0.4302, allocations: 19.92 kB / 487.4 MB, free: 10.35 MB / 362.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.001224/0.4314, allocations: 0.7241 MB / 488.2 MB, free: 9.566 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.4315, allocations: 8.031 kB / 488.2 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.4316, allocations: 82.47 kB / 488.2 MB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.4317, allocations: 59.34 kB / 488.3 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006664/0.4324, allocations: 388.3 kB / 488.7 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.858e-05/0.4325, allocations: 58.47 kB / 488.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.171e-05/0.4325, allocations: 40 kB / 488.8 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.4332, allocations: 406.7 kB / 489.2 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4333, allocations: 4 kB / 489.2 MB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.4333, allocations: 19.94 kB / 489.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.041e-05/0.4333, allocations: 12.44 kB / 489.2 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.4338, allocations: 249.5 kB / 489.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.4358, allocations: 1.675 MB / 491.1 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.4364, allocations: 287.9 kB / 491.4 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.4366, allocations: 122.6 kB / 491.5 MB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.776e-05/0.4366, allocations: 11.98 kB / 491.5 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004307/0.4371, allocations: 312.8 kB / 491.8 MB, free: 5.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 2.424e-06/0.4371, allocations: 0 / 491.8 MB, free: 5.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.000656/0.4378, allocations: 373.3 kB / 492.2 MB, free: 5.242 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.599e-05/0.4379, allocations: 166.2 kB / 492.4 MB, free: 5.043 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005145/0.4384, allocations: 438.5 kB / 492.8 MB, free: 4.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.4384, allocations: 41.7 kB / 492.8 MB, free: 4.562 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.4386, allocations: 228.6 kB / 493.1 MB, free: 4.336 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.4387, allocations: 82.95 kB / 493.1 MB, free: 4.254 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.4388, allocations: 12 kB / 493.2 MB, free: 4.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4389, allocations: 366.7 kB / 493.5 MB, free: 3.875 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.4391, allocations: 105.1 kB / 493.6 MB, free: 3.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.4394, allocations: 262.7 kB / 493.9 MB, free: 3.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.4397, allocations: 158.8 kB / 494 MB, free: 3.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4397, allocations: 0 / 494 MB, free: 3.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007166/0.4404, allocations: 472.2 kB / 494.5 MB, free: 2.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.022e-05/0.4405, allocations: 34.64 kB / 494.5 MB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4405, allocations: 4 kB / 494.5 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.4405, allocations: 8 kB / 494.5 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.4407, allocations: 43.84 kB / 494.6 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.4407, allocations: 8.469 kB / 494.6 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.441, allocations: 51.81 kB / 494.6 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-05/0.441, allocations: 20 kB / 494.7 MB, free: 2.648 MB / 362.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.0001832/0.4412, allocations: 203.8 kB / 494.9 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.4413, allocations: 43.53 kB / 494.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006639/0.442, allocations: 409.5 kB / 495.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.442, allocations: 4 kB / 495.3 MB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.442, allocations: 4 kB / 495.3 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.442, allocations: 0 / 495.3 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.4431, allocations: 0.7869 MB / 496.1 MB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4431, allocations: 0 / 496.1 MB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-05/0.4432, allocations: 23.92 kB / 496.1 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.4432, allocations: 4 kB / 496.1 MB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.4432, allocations: 11.98 kB / 496.1 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.4433, allocations: 7.953 kB / 496.1 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4433, allocations: 0 / 496.1 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006403/0.4439, allocations: 0.5246 MB / 496.7 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.444, allocations: 136.5 kB / 496.8 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.347e-05/0.4441, allocations: 11.98 kB / 496.8 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.4443, allocations: 35.98 kB / 496.8 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.4444, allocations: 35.94 kB / 496.9 MB, free: 292 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.4445, allocations: 19.98 kB / 496.9 MB, free: 272 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003694/0.4449, allocations: 309.2 kB / 497.2 MB, free: 15.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4449, allocations: 0 / 497.2 MB, free: 15.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004874/0.4454, allocations: 116.2 kB / 497.3 MB, free: 15.85 MB / 378.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.00195/0.4473, allocations: 1.517 MB / 498.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006503/0.448, allocations: 387.8 kB / 499.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.448, allocations: 4 kB / 499.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.4483, allocations: 235.2 kB / 499.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.4488, allocations: 74.34 kB / 499.5 MB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.4505, allocations: 0.7175 MB / 0.4885 GB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.4511, allocations: 0.8481 MB / 0.4893 GB, free: 12.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002318/0.4514, allocations: 87.66 kB / 0.4894 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/0.4516, allocations: 159.4 kB / 0.4896 GB, free: 11.82 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.4516, allocations: 4 kB / 0.4896 GB, free: 11.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.4762, allocations: 9.23 MB / 0.4986 GB, free: 2.672 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.4765, allocations: 178.5 kB / 0.4988 GB, free: 2.449 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.671, allocations: 64 / 0.4988 GB, free: 2.449 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat