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.0009148/0.0009148, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 221.5 MB / 230.3 MB, free: 7.598 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.0008917/0.0008919, allocations: 90.08 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.155e-05, allocations: 4 kB / 337.1 MB, free: 9.965 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 50.43 MB / 387.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3422/0.4493, allocations: 83.12 MB / 470.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.4496, allocations: 72.72 kB / 470.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02498/0.4746, allocations: 9.154 MB / 479.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4746, allocations: 0 / 479.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.299e-05/0.4747, allocations: 15.94 kB / 479.9 MB, free: 2.355 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.001118/0.4758, allocations: 0.7241 MB / 480.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.4759, allocations: 8.031 kB / 480.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.476, allocations: 67.3 kB / 480.7 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006231/0.4766, allocations: 380.4 kB / 481.1 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/0.4767, allocations: 50.48 kB / 481.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.4768, allocations: 28 kB / 481.2 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004003/0.4772, allocations: 213.4 kB / 481.4 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.4777, allocations: 360.4 kB / 481.7 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.4778, allocations: 4 kB / 481.7 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.4778, allocations: 3.953 kB / 481.7 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.287e-05/0.4778, allocations: 16.42 kB / 481.7 MB, free: 392 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.4799, allocations: 1.612 MB / 483.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.4803, allocations: 256 kB / 483.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.4805, allocations: 110.9 kB / 483.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.341e-05/0.4806, allocations: 20.2 kB / 483.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003597/0.481, allocations: 304.6 kB / 484 MB, free: 13.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.943e-06/0.481, allocations: 0 / 484 MB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006736/0.4816, allocations: 316.2 kB / 484.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.4817, allocations: 174.2 kB / 484.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/0.4822, allocations: 416.9 kB / 484.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.4823, allocations: 33.7 kB / 484.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.4824, allocations: 236.5 kB / 485.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.673e-05/0.4825, allocations: 86.94 kB / 485.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.4826, allocations: 0 / 485.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4827, allocations: 354.8 kB / 485.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.4829, allocations: 97.11 kB / 485.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.4831, allocations: 249.6 kB / 485.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.4834, allocations: 137.5 kB / 486.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4834, allocations: 0 / 486.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006634/0.4841, allocations: 385.5 kB / 486.5 MB, free: 11.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.4841, allocations: 42.62 kB / 486.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4842, allocations: 4 kB / 486.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.4842, allocations: 8 kB / 486.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.4843, allocations: 43.84 kB / 486.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4844, allocations: 11.94 kB / 486.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.4846, allocations: 27.98 kB / 486.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.4847, allocations: 20.06 kB / 486.6 MB, free: 11.21 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.0001836/0.4849, allocations: 191.7 kB / 486.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005821/0.4854, allocations: 325.1 kB / 487.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.289e-05/0.4855, allocations: 39.53 kB / 487.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006693/0.4862, allocations: 359.4 kB / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4862, allocations: 4 kB / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4862, allocations: 3.984 kB / 487.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4862, allocations: 0 / 487.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.4873, allocations: 0.7249 MB / 488.2 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4873, allocations: 0 / 488.2 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.4874, allocations: 19.98 kB / 488.3 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4874, allocations: 0 / 488.3 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.4875, allocations: 12 kB / 488.3 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.4875, allocations: 7.922 kB / 488.3 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.4875, allocations: 8.062 kB / 488.3 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006248/0.4881, allocations: 483.5 kB / 488.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.762e-05/0.4882, allocations: 124.6 kB / 488.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.345e-05/0.4883, allocations: 15.94 kB / 488.9 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.4885, allocations: 27.92 kB / 488.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4887, allocations: 39.94 kB / 489 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.4887, allocations: 15.98 kB / 489 MB, free: 8.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000306/0.489, allocations: 302.9 kB / 489.3 MB, free: 8.434 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.489, allocations: 0 / 489.3 MB, free: 8.434 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004857/0.4895, allocations: 108.1 kB / 489.4 MB, free: 8.328 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) * 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.001728/0.4912, allocations: 1.427 MB / 490.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005512/0.4918, allocations: 367 kB / 491.2 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4918, allocations: 0 / 491.2 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.4921, allocations: 223.2 kB / 491.4 MB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.4926, allocations: 70.36 kB / 491.4 MB, free: 6.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.4941, allocations: 0.7008 MB / 492.1 MB, free: 5.539 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.4946, allocations: 0.84 MB / 493 MB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.4948, allocations: 83.44 kB / 493.1 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.495, allocations: 171.3 kB / 493.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of SimCode: time 4.4e-07/0.495, allocations: 0 / 493.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.5246, allocations: 8.592 MB / 0.4901 GB, free: 11.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002617/0.525, allocations: 160 kB / 0.4902 GB, free: 11.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.235/2.76, allocations: 4 kB / 0.4902 GB, free: 11.64 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