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.001105/0.001105, allocations: 95.98 kB / 16.31 MB, free: 6.461 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.001207/0.001208, allocations: 175.7 kB / 17.19 MB, free: 6.348 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.366/1.366, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002959, allocations: 6.438 kB / 300.8 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00282/0.1082, allocations: 2.038 MB / 353.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.1103, allocations: 1.22 MB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.1105, allocations: 7.938 kB / 354.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005789/0.111, allocations: 187.4 kB / 354.7 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1114, allocations: 143.5 kB / 354.8 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.1119, allocations: 234 kB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003798/0.1123, allocations: 284.4 kB / 355.3 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.1126, allocations: 162.6 kB / 355.5 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1127, allocations: 143.3 kB / 355.6 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1129, allocations: 159.2 kB / 355.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.113, allocations: 12 kB / 355.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.1132, allocations: 75.83 kB / 355.9 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.1133, allocations: 95.66 kB / 355.9 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.38e-05/0.1134, allocations: 89.45 kB / 356 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.1138, allocations: 383.1 kB / 356.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1138, allocations: 3.938 kB / 356.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1138, allocations: 0 / 356.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1138, allocations: 0 / 356.4 MB, free: 6.438 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.001221/0.1151, allocations: 0.7657 MB / 357.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1151, allocations: 12.03 kB / 357.2 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.743e-05/0.1152, allocations: 74.48 kB / 357.3 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.845e-05/0.1153, allocations: 55.34 kB / 357.3 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005434/0.1159, allocations: 374.1 kB / 357.7 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.7e-05/0.116, allocations: 62.62 kB / 357.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.116, allocations: 40 kB / 357.8 MB, free: 4.949 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.1167, allocations: 432.6 kB / 358.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1167, allocations: 0 / 358.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.1168, allocations: 19.95 kB / 358.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.1168, allocations: 16.44 kB / 358.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004727/0.1173, allocations: 269.5 kB / 358.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.1192, allocations: 1.69 MB / 360.2 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005429/0.1197, allocations: 299.9 kB / 360.5 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.289e-05/0.1198, allocations: 11.98 kB / 360.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004235/0.1202, allocations: 316.5 kB / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.1203, allocations: 0 / 360.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009107/0.1212, allocations: 0.566 MB / 361.4 MB, free: 1.141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.1213, allocations: 166.1 kB / 361.5 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004773/0.1218, allocations: 489.2 kB / 362 MB, free: 464 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.1218, allocations: 37.7 kB / 362.1 MB, free: 420 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.122, allocations: 228.7 kB / 362.3 MB, free: 188 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.815e-05/0.1221, allocations: 86.91 kB / 362.4 MB, free: 100 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.832e-05/0.1221, allocations: 4 kB / 362.4 MB, free: 96 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1223, allocations: 362.7 kB / 362.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.1225, allocations: 121.1 kB / 362.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/0.1228, allocations: 266.7 kB / 363.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.1231, allocations: 169.7 kB / 363.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1231, allocations: 0 / 363.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007179/0.1238, allocations: 483.1 kB / 363.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.1239, allocations: 33.7 kB / 363.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1239, allocations: 4 kB / 363.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.1239, allocations: 11.98 kB / 363.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.1241, allocations: 39.86 kB / 363.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.1241, allocations: 12.41 kB / 363.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.1243, allocations: 63.59 kB / 363.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.1244, allocations: 20 kB / 363.9 MB, free: 14.45 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.0002471/0.1246, allocations: 256.6 kB / 364.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.1247, allocations: 43.44 kB / 364.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004459/0.1251, allocations: 257.3 kB / 364.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.1252, allocations: 8 kB / 364.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.1252, allocations: 4 kB / 364.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1252, allocations: 3.984 kB / 364.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009746/0.1262, allocations: 0.7778 MB / 365.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1262, allocations: 4 kB / 365.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.1262, allocations: 19.92 kB / 365.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1263, allocations: 4 kB / 365.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.1263, allocations: 11.98 kB / 365.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1263, allocations: 3.953 kB / 365.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1263, allocations: 4 kB / 365.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006484/0.127, allocations: 0.54 MB / 365.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.537e-05/0.1271, allocations: 124.4 kB / 366 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.462e-05/0.1271, allocations: 12 kB / 366 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.1273, allocations: 35.97 kB / 366 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.1275, allocations: 39.94 kB / 366 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.1275, allocations: 12 kB / 366.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.1278, allocations: 323.1 kB / 366.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1278, allocations: 0 / 366.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004453/0.1283, allocations: 123.9 kB / 366.5 MB, free: 11.73 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.001819/0.1301, allocations: 1.553 MB / 368 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006285/0.1307, allocations: 396.1 kB / 368.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1307, allocations: 0 / 368.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.1311, allocations: 243.3 kB / 368.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.1315, allocations: 73.45 kB / 368.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004373/0.1359, allocations: 5.025 MB / 373.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.1364, allocations: 0.8558 MB / 374.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.1366, allocations: 79.81 kB / 374.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.1368, allocations: 167.4 kB / 374.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1368, allocations: 0 / 374.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.1604, allocations: 9.065 MB / 383.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.1606, allocations: 209.9 kB / 384.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.224, allocations: 0 / 384.1 MB, free: 10.16 MB / 318.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