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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009731/0.000973, allocations: 100.1 kB / 16.94 MB, free: 5.984 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.0009401/0.0009401, allocations: 179.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.0004841, allocations: 12 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002685/0.105, allocations: 2.014 MB / 330.4 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1068, allocations: 1.171 MB / 331.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1069, allocations: 7.938 kB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005362/0.1075, allocations: 187.4 kB / 331.8 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.1078, allocations: 143.5 kB / 331.9 MB, free: 480 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.1083, allocations: 219.5 kB / 332.1 MB, free: 260 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.1086, allocations: 292.5 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.1089, allocations: 154.6 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.109, allocations: 139.4 kB / 332.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.1092, allocations: 163.2 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.1092, allocations: 12 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.1094, allocations: 79.81 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.348e-05/0.1095, allocations: 91.66 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.959e-05/0.1096, allocations: 93.45 kB / 333.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.1099, allocations: 375.4 kB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1099, allocations: 0 / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1099, allocations: 0 / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.1099, allocations: 0 / 333.5 MB, free: 14.86 MB / 286.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.001041/0.111, allocations: 0.7772 MB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.111, allocations: 12.03 kB / 334.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.433e-05/0.1111, allocations: 78.47 kB / 334.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/0.1112, allocations: 55.34 kB / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.1117, allocations: 378 kB / 334.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/0.1117, allocations: 58.7 kB / 334.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.1118, allocations: 40 kB / 334.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005741/0.1124, allocations: 424.6 kB / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1124, allocations: 0 / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.1124, allocations: 20 kB / 335.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.1125, allocations: 12.44 kB / 335.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.1129, allocations: 265.4 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1146, allocations: 1.698 MB / 337.3 MB, free: 10.83 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.1151, allocations: 299.9 kB / 337.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.118e-05/0.1152, allocations: 16.2 kB / 337.6 MB, free: 10.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004007/0.1156, allocations: 332.6 kB / 337.9 MB, free: 10.13 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.543e-06/0.1156, allocations: 0 / 337.9 MB, free: 10.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009117/0.1165, allocations: 0.5566 MB / 338.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.1167, allocations: 162.2 kB / 338.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/0.1172, allocations: 493.2 kB / 339.1 MB, free: 8.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.1173, allocations: 37.7 kB / 339.2 MB, free: 8.816 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.1175, allocations: 240.5 kB / 339.4 MB, free: 8.578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.1175, allocations: 79 kB / 339.5 MB, free: 8.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.976e-05/0.1176, allocations: 8 kB / 339.5 MB, free: 8.492 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1177, allocations: 358.8 kB / 339.8 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.118, allocations: 117.1 kB / 340 MB, free: 8.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.1183, allocations: 262.7 kB / 340.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.1186, allocations: 169.6 kB / 340.4 MB, free: 7.531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1186, allocations: 0 / 340.4 MB, free: 7.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007062/0.1193, allocations: 482.5 kB / 340.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.1194, allocations: 37.73 kB / 340.9 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1194, allocations: 4 kB / 340.9 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1194, allocations: 8 kB / 340.9 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.1195, allocations: 43.84 kB / 340.9 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.1195, allocations: 8 kB / 340.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.1198, allocations: 59.56 kB / 341 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.1199, allocations: 24 kB / 341 MB, free: 6.859 MB / 286.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.0002285/0.1201, allocations: 252.6 kB / 341.3 MB, free: 6.594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.658e-05/0.1202, allocations: 47.47 kB / 341.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.1206, allocations: 269.4 kB / 341.6 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.1206, allocations: 8 kB / 341.6 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1207, allocations: 4 kB / 341.6 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1207, allocations: 0 / 341.6 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000966/0.1216, allocations: 0.7789 MB / 342.4 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1217, allocations: 4 kB / 342.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.285e-05/0.1217, allocations: 15.92 kB / 342.4 MB, free: 5.402 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1217, allocations: 8 kB / 342.4 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.1218, allocations: 11.98 kB / 342.4 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1218, allocations: 160 / 342.4 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1218, allocations: 4 kB / 342.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006512/0.1224, allocations: 0.5328 MB / 342.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-05/0.1225, allocations: 128.4 kB / 343.1 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.095e-05/0.1226, allocations: 8 kB / 343.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1228, allocations: 35.97 kB / 343.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.1229, allocations: 39.84 kB / 343.2 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.123, allocations: 23.98 kB / 343.2 MB, free: 4.559 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.1233, allocations: 327.1 kB / 343.5 MB, free: 4.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1233, allocations: 0 / 343.5 MB, free: 4.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004375/0.1237, allocations: 112 kB / 343.6 MB, free: 4.129 MB / 286.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.00175/0.1255, allocations: 1.559 MB / 345.2 MB, free: 2.543 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006066/0.1261, allocations: 407 kB / 345.6 MB, free: 2.133 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1261, allocations: 0 / 345.6 MB, free: 2.133 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.1264, allocations: 239.2 kB / 345.8 MB, free: 1.887 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1268, allocations: 70.39 kB / 345.9 MB, free: 1.82 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/0.1315, allocations: 5.012 MB / 350.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.132, allocations: 0.8514 MB / 351.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.1322, allocations: 83.56 kB / 351.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.1325, allocations: 159.4 kB / 352 MB, free: 11.57 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1325, allocations: 0 / 352 MB, free: 11.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.1542, allocations: 9.086 MB / 361.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.1544, allocations: 211 kB / 361.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.02, allocations: 3.938 kB / 361.3 MB, free: 2.223 MB / 302.1 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) Environment - environmentSimulation: 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