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.0015/0.0015, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.25/2.25, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 86.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.193e-05, allocations: 7.938 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3328, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.4637, allocations: 81.89 MB / 444.3 MB, free: 4.336 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.464, allocations: 75.95 kB / 444.4 MB, free: 4.262 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0519/0.5159, allocations: 8.985 MB / 453.4 MB, free: 11.32 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.516, allocations: 0 / 453.4 MB, free: 11.32 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.729e-05/0.5161, allocations: 16 kB / 453.4 MB, free: 11.3 MB / 347.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.002179/0.5183, allocations: 0.7332 MB / 454.1 MB, free: 10.52 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/0.5184, allocations: 12.03 kB / 454.1 MB, free: 10.5 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003311/0.5187, allocations: 55.34 kB / 454.2 MB, free: 10.45 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.5201, allocations: 384.4 kB / 454.6 MB, free: 10.03 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.5203, allocations: 46.48 kB / 454.6 MB, free: 9.98 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.5204, allocations: 28.98 kB / 454.6 MB, free: 9.953 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001066/0.5215, allocations: 213.5 kB / 454.8 MB, free: 9.746 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009373/0.5225, allocations: 368.3 kB / 455.2 MB, free: 9.348 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.87e-05/0.5225, allocations: 0 / 455.2 MB, free: 9.348 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.5226, allocations: 4 kB / 455.2 MB, free: 9.344 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.424e-05/0.5227, allocations: 12.44 kB / 455.2 MB, free: 9.332 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.5264, allocations: 1.604 MB / 456.8 MB, free: 7.656 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009571/0.5274, allocations: 267.9 kB / 457.1 MB, free: 7.367 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003842/0.5278, allocations: 107.8 kB / 457.2 MB, free: 7.254 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.5279, allocations: 20.19 kB / 457.2 MB, free: 7.234 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000701/0.5286, allocations: 304.3 kB / 457.5 MB, free: 6.895 MB / 347.1 MB Notification: Performance of pre-optimization done (n=37): time 4.839e-06/0.5287, allocations: 0 / 457.5 MB, free: 6.895 MB / 347.1 MB Notification: Performance of matching and sorting (n=37): time 0.00157/0.5303, allocations: 326.3 kB / 457.8 MB, free: 6.574 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.5305, allocations: 162.2 kB / 458 MB, free: 6.379 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.5316, allocations: 416.9 kB / 458.4 MB, free: 5.965 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.5318, allocations: 33.7 kB / 458.4 MB, free: 5.926 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.5321, allocations: 283 kB / 458.7 MB, free: 5.648 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.5324, allocations: 79.03 kB / 458.8 MB, free: 5.57 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.5324, allocations: 4 kB / 458.8 MB, free: 5.566 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.5326, allocations: 330.8 kB / 459.1 MB, free: 5.234 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004207/0.5331, allocations: 97.11 kB / 459.2 MB, free: 5.137 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/0.5336, allocations: 247.6 kB / 459.4 MB, free: 4.836 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007457/0.5344, allocations: 124.5 kB / 459.6 MB, free: 4.715 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.071e-05/0.5344, allocations: 4 kB / 459.6 MB, free: 4.711 MB / 347.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001647/0.5361, allocations: 359 kB / 459.9 MB, free: 4.355 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/0.5362, allocations: 37.69 kB / 459.9 MB, free: 4.312 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.5363, allocations: 4 kB / 460 MB, free: 4.309 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.502e-05/0.5363, allocations: 8.469 kB / 460 MB, free: 4.301 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.5367, allocations: 47.86 kB / 460 MB, free: 4.254 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/0.5368, allocations: 11.92 kB / 460 MB, free: 4.242 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007159/0.5375, allocations: 39.72 kB / 460.1 MB, free: 4.203 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-05/0.5376, allocations: 24 kB / 460.1 MB, free: 4.18 MB / 347.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,$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.000359/0.538, allocations: 171.9 kB / 460.3 MB, free: 4 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001627/0.5397, allocations: 332.1 kB / 460.6 MB, free: 3.672 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.5399, allocations: 43.44 kB / 460.6 MB, free: 3.629 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.5415, allocations: 352.7 kB / 461 MB, free: 3.273 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.5416, allocations: 7.953 kB / 461 MB, free: 3.266 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.5416, allocations: 4 kB / 461 MB, free: 3.262 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.5416, allocations: 3.984 kB / 461 MB, free: 3.258 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002567/0.5442, allocations: 0.7227 MB / 461.7 MB, free: 2.492 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.5443, allocations: 0 / 461.7 MB, free: 2.492 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.5445, allocations: 26.12 kB / 461.7 MB, free: 2.469 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.5445, allocations: 0 / 461.7 MB, free: 2.469 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.5446, allocations: 12 kB / 461.7 MB, free: 2.457 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.167e-05/0.5446, allocations: 3.984 kB / 461.7 MB, free: 2.453 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/0.5447, allocations: 7.938 kB / 461.7 MB, free: 2.445 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.5462, allocations: 475.1 kB / 462.2 MB, free: 1.949 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003065/0.5466, allocations: 128.5 kB / 462.3 MB, free: 1.805 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.5468, allocations: 11.98 kB / 462.3 MB, free: 1.793 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.5473, allocations: 27.98 kB / 462.4 MB, free: 1.766 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.5475, allocations: 35.94 kB / 462.4 MB, free: 1.73 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.809e-05/0.5476, allocations: 19.98 kB / 462.4 MB, free: 1.711 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0007867/0.5484, allocations: 291 kB / 462.7 MB, free: 1.426 MB / 347.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.5484, allocations: 0 / 462.7 MB, free: 1.426 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.001169/0.5496, allocations: 108.1 kB / 462.8 MB, free: 1.32 MB / 347.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,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.003444/0.5531, allocations: 1.452 MB / 464.3 MB, free: 15.88 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.5547, allocations: 366.1 kB / 464.6 MB, free: 15.52 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.5547, allocations: 0.9375 kB / 464.6 MB, free: 15.52 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000741/0.5555, allocations: 232.2 kB / 464.9 MB, free: 15.28 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.5568, allocations: 71.17 kB / 464.9 MB, free: 15.21 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.56, allocations: 0.7228 MB / 465.7 MB, free: 14.44 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008498/0.5609, allocations: 0.8517 MB / 466.5 MB, free: 13.56 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006169/0.5616, allocations: 167.4 kB / 466.7 MB, free: 13.39 MB / 363.1 MB Notification: Performance of SimCode: time 3.887e-06/0.5616, allocations: 0 / 466.7 MB, free: 13.39 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.963/3.524, allocations: 8.189 MB / 474.9 MB, free: 5.207 MB / 363.1 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