Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_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.00148/0.001485, allocations: 186 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001185/0.001184, allocations: 91.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003923/0.0003924, allocations: 8 kB / 327 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3634, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.5067, allocations: 82.63 MB / 457.3 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5071, allocations: 75.97 kB / 457.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04241/0.5495, allocations: 9.092 MB / 466.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.5495, allocations: 0 / 466.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.212e-05/0.5496, allocations: 19.92 kB / 466.4 MB, free: 4.793 MB / 346.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.001971/0.5516, allocations: 0.7899 MB / 467.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.5517, allocations: 12.03 kB / 467.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.5518, allocations: 78.47 kB / 467.3 MB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.552, allocations: 55.34 kB / 467.4 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009932/0.553, allocations: 382.2 kB / 467.7 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5532, allocations: 66.64 kB / 467.8 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.858e-05/0.5533, allocations: 40 kB / 467.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.5544, allocations: 424.7 kB / 468.3 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.5545, allocations: 4 kB / 468.3 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-05/0.5545, allocations: 19.98 kB / 468.3 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.961e-05/0.5546, allocations: 12.44 kB / 468.3 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008242/0.5554, allocations: 259.2 kB / 468.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00332/0.5588, allocations: 1.671 MB / 470.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009512/0.5598, allocations: 301.4 kB / 470.5 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.28e-05/0.5599, allocations: 16.22 kB / 470.5 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000698/0.5606, allocations: 317.2 kB / 470.8 MB, free: 80 kB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 3.466e-06/0.5606, allocations: 4 kB / 470.8 MB, free: 76 kB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.00173/0.5624, allocations: 0.5619 MB / 471.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.5625, allocations: 162.2 kB / 471.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009072/0.5634, allocations: 440.5 kB / 472 MB, free: 14.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.331e-05/0.5636, allocations: 41.7 kB / 472 MB, free: 14.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.5638, allocations: 278.9 kB / 472.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.5639, allocations: 90.95 kB / 472.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.564, allocations: 8 kB / 472.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5642, allocations: 330.8 kB / 472.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.5646, allocations: 117.1 kB / 472.8 MB, free: 14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005483/0.5651, allocations: 266.6 kB / 473.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.5656, allocations: 168.8 kB / 473.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5657, allocations: 0 / 473.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001251/0.5669, allocations: 454.5 kB / 473.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.71e-05/0.567, allocations: 38.16 kB / 473.8 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.567, allocations: 4 kB / 473.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.119e-05/0.5671, allocations: 15.95 kB / 473.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.5673, allocations: 47.84 kB / 473.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.061e-05/0.5674, allocations: 4.156 kB / 473.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.5679, allocations: 43.83 kB / 473.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.5679, allocations: 27.98 kB / 473.9 MB, free: 12.87 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004877/0.5684, allocations: 252.9 kB / 474.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.5686, allocations: 39.53 kB / 474.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.5699, allocations: 421.1 kB / 474.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.5699, allocations: 4 kB / 474.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.5699, allocations: 11.95 kB / 474.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.57, allocations: 0 / 474.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.5719, allocations: 0.7986 MB / 475.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.5719, allocations: 3.953 kB / 475.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.572, allocations: 19.94 kB / 475.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.5721, allocations: 4 kB / 475.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.846e-05/0.5721, allocations: 15.98 kB / 475.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.5722, allocations: 0 / 475.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5722, allocations: 3.938 kB / 475.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.5735, allocations: 0.5409 MB / 476 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.5737, allocations: 132.5 kB / 476.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.5738, allocations: 12 kB / 476.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.5742, allocations: 23.98 kB / 476.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.5744, allocations: 39.94 kB / 476.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.5745, allocations: 27.98 kB / 476.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006243/0.5751, allocations: 315.1 kB / 476.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.485e-06/0.5751, allocations: 0 / 476.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008028/0.5759, allocations: 124.1 kB / 476.6 MB, free: 9.965 MB / 362.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) * Number of clocked states: 0 () * 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.003101/0.579, allocations: 1.58 MB / 478.2 MB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.5804, allocations: 403.2 kB / 478.6 MB, free: 7.961 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.5804, allocations: 4 kB / 478.6 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006209/0.5811, allocations: 251.1 kB / 478.9 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007941/0.5819, allocations: 78.33 kB / 478.9 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007485/0.5894, allocations: 5.072 MB / 484 MB, free: 2.418 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006263/0.5901, allocations: 0.8559 MB / 484.9 MB, free: 1.535 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004412/0.5905, allocations: 171.3 kB / 485 MB, free: 1.371 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5905, allocations: 0 / 485 MB, free: 1.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.869/3.46, allocations: 8.241 MB / 493.3 MB, free: 9.125 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat