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.001129/0.00113, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.312/1.312, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009315/0.0009315, allocations: 91.23 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002473, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2262, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.332, allocations: 83.86 MB / 485.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3323, allocations: 75.97 kB / 485.5 MB, free: 12.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02598/0.3583, allocations: 9.262 MB / 494.8 MB, free: 3.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3583, allocations: 3.938 kB / 494.8 MB, free: 3.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.775e-05/0.3584, allocations: 12 kB / 494.8 MB, free: 3.215 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.001577/0.36, allocations: 0.79 MB / 495.6 MB, free: 2.363 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.36, allocations: 8.031 kB / 495.6 MB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.3602, allocations: 78.42 kB / 495.7 MB, free: 2.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.3603, allocations: 59.34 kB / 495.7 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007472/0.3611, allocations: 390.2 kB / 496.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-05/0.3612, allocations: 58.69 kB / 496.1 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.3612, allocations: 40 kB / 496.2 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007263/0.362, allocations: 424.7 kB / 496.6 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.362, allocations: 0 / 496.6 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.362, allocations: 15.95 kB / 496.6 MB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.3621, allocations: 16.38 kB / 496.6 MB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005073/0.3626, allocations: 261.4 kB / 496.9 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002276/0.3649, allocations: 1.679 MB / 498.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.3656, allocations: 303.8 kB / 498.9 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.344e-05/0.3657, allocations: 11.98 kB / 498.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004947/0.3662, allocations: 320.8 kB / 499.2 MB, free: 14.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/0.3662, allocations: 0 / 499.2 MB, free: 14.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.001114/0.3673, allocations: 0.5617 MB / 499.8 MB, free: 13.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/0.3674, allocations: 162.2 kB / 499.9 MB, free: 13.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005869/0.368, allocations: 440.5 kB / 0.4886 GB, free: 13.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.3681, allocations: 45.69 kB / 0.4887 GB, free: 13.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.3683, allocations: 224.6 kB / 0.4889 GB, free: 12.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.209e-05/0.3684, allocations: 87 kB / 0.489 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.3684, allocations: 8 kB / 0.489 GB, free: 12.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3686, allocations: 358.8 kB / 0.4893 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.3688, allocations: 125 kB / 0.4894 GB, free: 12.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.3692, allocations: 258.7 kB / 0.4897 GB, free: 12.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.3695, allocations: 165.6 kB / 0.4898 GB, free: 11.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.3695, allocations: 4 kB / 0.4898 GB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008222/0.3703, allocations: 479.7 kB / 0.4903 GB, free: 11.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.3704, allocations: 33.7 kB / 0.4903 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3704, allocations: 4.312 kB / 0.4903 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.3704, allocations: 11.98 kB / 0.4903 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.3706, allocations: 39.86 kB / 0.4904 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.3706, allocations: 12 kB / 0.4904 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3709, allocations: 43.91 kB / 0.4904 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.941e-05/0.371, allocations: 28 kB / 0.4905 GB, free: 11.28 MB / 378.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.0003121/0.3713, allocations: 248.6 kB / 0.4907 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.702e-05/0.3714, allocations: 47.44 kB / 0.4907 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007759/0.3722, allocations: 423.7 kB / 0.4911 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.3722, allocations: 7.984 kB / 0.4911 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3722, allocations: 0 / 0.4911 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3722, allocations: 4 kB / 0.4912 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.3735, allocations: 0.8077 MB / 0.4919 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.3735, allocations: 4 kB / 0.4919 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.3736, allocations: 11.98 kB / 0.492 GB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.3736, allocations: 4 kB / 0.492 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.3736, allocations: 15.98 kB / 0.492 GB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.3736, allocations: 7.938 kB / 0.492 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3736, allocations: 3.953 kB / 0.492 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.3744, allocations: 0.5326 MB / 0.4925 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.3745, allocations: 136.5 kB / 0.4926 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.3746, allocations: 11.98 kB / 0.4926 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3749, allocations: 27.98 kB / 0.4927 GB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.375, allocations: 43.94 kB / 0.4927 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.375, allocations: 23.92 kB / 0.4927 GB, free: 8.789 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003613/0.3754, allocations: 315.1 kB / 0.493 GB, free: 8.488 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3754, allocations: 4 kB / 0.493 GB, free: 8.484 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005267/0.376, allocations: 116 kB / 0.4932 GB, free: 8.371 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) * 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.002087/0.378, allocations: 1.576 MB / 0.4947 GB, free: 6.914 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000721/0.3788, allocations: 406.8 kB / 0.4951 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3788, allocations: 0 / 0.4951 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003568/0.3792, allocations: 240.1 kB / 0.4953 GB, free: 6.262 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.3796, allocations: 72.83 kB / 0.4954 GB, free: 6.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.3847, allocations: 5.036 MB / 0.5003 GB, free: 1.023 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.3851, allocations: 0.8482 MB / 0.5011 GB, free: 152 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.3854, allocations: 87.5 kB / 0.5012 GB, free: 64 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1879/0.5733, allocations: 158.2 kB / 0.5014 GB, free: 98.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.5734, allocations: 1.031 kB / 0.5014 GB, free: 98.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.5966, allocations: 9.264 MB / 0.5104 GB, free: 97.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.5968, allocations: 208.3 kB / 0.5106 GB, free: 97.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.779, allocations: 3.938 kB / 0.5106 GB, free: 97.49 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