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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007781/0.0007782, allocations: 89.56 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001196, allocations: 183.6 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.0002351, allocations: 12 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09139, allocations: 50.41 MB / 351.3 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.0028/0.09423, allocations: 2.039 MB / 353.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.0961, allocations: 1.232 MB / 354.6 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.09626, allocations: 11.94 kB / 354.6 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005645/0.09684, allocations: 203.3 kB / 354.8 MB, free: 184 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002739/0.09712, allocations: 135.5 kB / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005877/0.09772, allocations: 238.8 kB / 355.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.09814, allocations: 419.8 kB / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.09841, allocations: 158.6 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.09858, allocations: 151.3 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.09876, allocations: 163.2 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.0988, allocations: 12 kB / 356.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.099, allocations: 91.88 kB / 356.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.09912, allocations: 87.67 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.09923, allocations: 97.45 kB / 356.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.09965, allocations: 371.4 kB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.09966, allocations: 8 kB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09967, allocations: 0 / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.09969, allocations: 3.938 kB / 356.7 MB, free: 14.26 MB / 302.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.001217/0.1009, allocations: 0.7773 MB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.101, allocations: 8.031 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.937e-05/0.101, allocations: 70.53 kB / 357.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.804e-05/0.1011, allocations: 59.34 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004851/0.1016, allocations: 374 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.176e-05/0.1017, allocations: 58.69 kB / 358 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.1018, allocations: 40 kB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006363/0.1024, allocations: 424.7 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1024, allocations: 7.891 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/0.1025, allocations: 16 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.1025, allocations: 16.42 kB / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.103, allocations: 265.5 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.1047, allocations: 1.69 MB / 360.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.1052, allocations: 306.5 kB / 360.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.1055, allocations: 126.5 kB / 360.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-05/0.1055, allocations: 11.98 kB / 360.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004579/0.106, allocations: 328.5 kB / 361.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.884e-06/0.106, allocations: 0 / 361.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009186/0.107, allocations: 488.4 kB / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.1071, allocations: 166.2 kB / 361.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.1076, allocations: 497.1 kB / 362.4 MB, free: 8.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.683e-05/0.1077, allocations: 37.7 kB / 362.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.1078, allocations: 228.6 kB / 362.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.122e-05/0.1079, allocations: 86.98 kB / 362.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.109e-05/0.1079, allocations: 16 kB / 362.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1081, allocations: 358.7 kB / 363.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.1083, allocations: 113.1 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.1086, allocations: 262.7 kB / 363.4 MB, free: 7.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.1089, allocations: 169.6 kB / 363.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1089, allocations: 0 / 363.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007422/0.1097, allocations: 474.3 kB / 364.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.1097, allocations: 33.7 kB / 364.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.1097, allocations: 4.078 kB / 364.1 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1098, allocations: 8.469 kB / 364.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.1099, allocations: 51.84 kB / 364.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1099, allocations: 15.92 kB / 364.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.1102, allocations: 59.53 kB / 364.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.1102, allocations: 27.92 kB / 364.3 MB, free: 6.223 MB / 302.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,sampleTriggerSet.y,sampleTriggerReset.y,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.0002595/0.1105, allocations: 244.6 kB / 364.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.475e-05/0.1105, allocations: 47.47 kB / 364.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004862/0.111, allocations: 269.5 kB / 364.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.111, allocations: 4 kB / 364.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.1111, allocations: 0 / 364.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.1111, allocations: 4 kB / 364.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009757/0.1121, allocations: 0.7789 MB / 365.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1121, allocations: 0 / 365.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.075e-05/0.1121, allocations: 27.84 kB / 365.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1121, allocations: 0 / 365.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.1122, allocations: 15.95 kB / 365.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1122, allocations: 4 kB / 365.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1122, allocations: 0 / 365.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006888/0.1129, allocations: 0.5117 MB / 366.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.444e-05/0.113, allocations: 120.4 kB / 366.3 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.1131, allocations: 19.98 kB / 366.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.1133, allocations: 31.94 kB / 366.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.1134, allocations: 47.92 kB / 366.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.1134, allocations: 15.98 kB / 366.4 MB, free: 3.973 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003194/0.1138, allocations: 319.1 kB / 366.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1138, allocations: 0 / 366.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005094/0.1143, allocations: 115.7 kB / 366.8 MB, free: 3.551 MB / 302.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,sampleTriggerSet.y,sampleTriggerReset.y,$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 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * 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.00213/0.1164, allocations: 1.395 MB / 368.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000812/0.1172, allocations: 395.2 kB / 368.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1173, allocations: 0.9375 kB / 368.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003597/0.1176, allocations: 239.2 kB / 368.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.1182, allocations: 89.41 kB / 368.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1796/0.2978, allocations: 2.495 MB / 371.4 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.2983, allocations: 0.838 MB / 372.2 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003146/0.2986, allocations: 75.28 kB / 372.3 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.2988, allocations: 164.3 kB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.332e-06/0.2988, allocations: 3.156 kB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.3229, allocations: 9.09 MB / 381.6 MB, free: 21.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000128/0.3231, allocations: 219.9 kB / 381.8 MB, free: 21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.284, allocations: 1.031 kB / 381.8 MB, free: 21 MB / 302.1 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