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.001037/0.001037, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.309/1.309, allocations: 205.4 MB / 223.1 MB, free: 9.043 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.0008419/0.0008419, allocations: 92.16 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002183, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1988, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0882/0.287, allocations: 82.64 MB / 458.5 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.2872, allocations: 75.97 kB / 458.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0244/0.3117, allocations: 9.093 MB / 467.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3117, allocations: 0 / 467.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.728e-05/0.3118, allocations: 19.94 kB / 467.7 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.001263/0.313, allocations: 0.786 MB / 468.5 MB, free: 3.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3131, allocations: 8.031 kB / 468.5 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.772e-05/0.3132, allocations: 90.44 kB / 468.6 MB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.3133, allocations: 55.34 kB / 468.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006639/0.314, allocations: 378.2 kB / 469 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.172e-05/0.3141, allocations: 62.66 kB / 469.1 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.3141, allocations: 43.98 kB / 469.1 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.3148, allocations: 420.7 kB / 469.5 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3148, allocations: 0 / 469.5 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/0.3149, allocations: 23.98 kB / 469.6 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.3149, allocations: 16.38 kB / 469.6 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.3153, allocations: 255 kB / 469.8 MB, free: 2.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.3172, allocations: 1.675 MB / 471.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.3177, allocations: 295.9 kB / 471.8 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.496e-05/0.3178, allocations: 11.98 kB / 471.8 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004051/0.3182, allocations: 325.2 kB / 472.1 MB, free: 80 kB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.3182, allocations: 0 / 472.1 MB, free: 80 kB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009441/0.3192, allocations: 0.5584 MB / 472.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.3193, allocations: 166.2 kB / 472.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.3198, allocations: 440.5 kB / 473.3 MB, free: 14.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.3198, allocations: 37.7 kB / 473.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.32, allocations: 240.5 kB / 473.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.216e-05/0.3201, allocations: 83.02 kB / 473.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.3201, allocations: 8 kB / 473.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3203, allocations: 358.8 kB / 474 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.3205, allocations: 121 kB / 474.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.3209, allocations: 262.7 kB / 474.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.3212, allocations: 176.8 kB / 474.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.3212, allocations: 4 kB / 474.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007728/0.322, allocations: 478.1 kB / 475 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.322, allocations: 42.16 kB / 475 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.322, allocations: 8 kB / 475.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.3221, allocations: 11.95 kB / 475.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.3222, allocations: 47.84 kB / 475.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3222, allocations: 4 kB / 475.1 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.3225, allocations: 39.83 kB / 475.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.3225, allocations: 20 kB / 475.2 MB, free: 12.86 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.0002684/0.3228, allocations: 248.8 kB / 475.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/0.3229, allocations: 43.53 kB / 475.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007135/0.3236, allocations: 429.2 kB / 475.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3236, allocations: 8 kB / 475.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.3237, allocations: 7.953 kB / 475.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3237, allocations: 0 / 475.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3248, allocations: 0.8102 MB / 476.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3248, allocations: 3.953 kB / 476.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.3249, allocations: 12 kB / 476.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3249, allocations: 4 kB / 476.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.325, allocations: 15.98 kB / 476.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.325, allocations: 3.938 kB / 476.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.325, allocations: 3.984 kB / 476.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007261/0.3257, allocations: 0.5448 MB / 477.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.3259, allocations: 120.6 kB / 477.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.3259, allocations: 16 kB / 477.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.3262, allocations: 23.98 kB / 477.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.3263, allocations: 35.94 kB / 477.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.3263, allocations: 27.98 kB / 477.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003742/0.3267, allocations: 323.1 kB / 477.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3267, allocations: 0 / 477.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005157/0.3272, allocations: 112.2 kB / 477.9 MB, free: 9.957 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.00189/0.3291, allocations: 1.578 MB / 479.5 MB, free: 8.363 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007318/0.3299, allocations: 411.1 kB / 479.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3299, allocations: 0 / 479.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.3302, allocations: 247.1 kB / 480.2 MB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.3307, allocations: 74.41 kB / 480.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.335, allocations: 5.043 MB / 485.3 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3355, allocations: 0.8481 MB / 486.1 MB, free: 1.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002536/0.3357, allocations: 91.44 kB / 486.2 MB, free: 1.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.336, allocations: 159.4 kB / 486.4 MB, free: 1.336 MB / 362.7 MB Notification: Performance of SimCode: time 8.81e-07/0.336, allocations: 0 / 486.4 MB, free: 1.336 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.3598, allocations: 9.266 MB / 495.6 MB, free: 8.059 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.3601, allocations: 212.4 kB / 495.8 MB, free: 7.809 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/2.408, allocations: 0 / 495.8 MB, free: 7.809 MB / 378.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