Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.001201, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.4 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.45 kB / 306.5 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1005, allocations: 50.53 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005256/0.1058, allocations: 2.518 MB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.1087, allocations: 1.446 MB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003714/0.1091, allocations: 11.94 kB / 361.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008844/0.11, allocations: 211.3 kB / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.1107, allocations: 175.4 kB / 361.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007757/0.1115, allocations: 227.7 kB / 361.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006652/0.1121, allocations: 491.6 kB / 362.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003766/0.1125, allocations: 217.8 kB / 362.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.1128, allocations: 191.2 kB / 362.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.1131, allocations: 223 kB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.587e-05/0.1132, allocations: 36 kB / 362.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.1135, allocations: 111.9 kB / 362.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.1137, allocations: 127.5 kB / 363 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.114, allocations: 222.7 kB / 363.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000864/0.1148, allocations: 0.5376 MB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.1149, allocations: 0 / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1149, allocations: 0 / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.1149, allocations: 0 / 363.8 MB, free: 7.59 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.001759/0.1167, allocations: 0.8552 MB / 364.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1167, allocations: 12.03 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.816e-05/0.1168, allocations: 82.7 kB / 364.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.1171, allocations: 72.2 kB / 364.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005355/0.1176, allocations: 387 kB / 365.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.513e-05/0.1177, allocations: 63 kB / 365.2 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.1178, allocations: 43.94 kB / 365.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007029/0.1185, allocations: 424.7 kB / 365.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1185, allocations: 7.938 kB / 365.7 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.1186, allocations: 16 kB / 365.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.1186, allocations: 12.44 kB / 365.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/0.1191, allocations: 261.5 kB / 366 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.1214, allocations: 1.69 MB / 367.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005906/0.122, allocations: 291.9 kB / 368 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/0.1222, allocations: 134.5 kB / 368.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.221e-05/0.1223, allocations: 4 kB / 368.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004755/0.1228, allocations: 331.6 kB / 368.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.074e-06/0.1228, allocations: 0 / 368.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009831/0.1238, allocations: 466.7 kB / 368.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1239, allocations: 166.2 kB / 369 MB, free: 1.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005728/0.1245, allocations: 0.4895 MB / 369.5 MB, free: 1.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.1245, allocations: 37.7 kB / 369.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.1247, allocations: 236.5 kB / 369.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.104e-05/0.1248, allocations: 90.92 kB / 369.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.125, allocations: 114.1 kB / 370 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1252, allocations: 362.7 kB / 370.3 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.1254, allocations: 117.1 kB / 370.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.1258, allocations: 262.7 kB / 370.7 MB, free: 188 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.156/0.2817, allocations: 402.5 kB / 371.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.65e-05/0.2818, allocations: 1.188 kB / 371.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001393/0.2832, allocations: 464.3 kB / 371.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.2833, allocations: 36.14 kB / 371.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.2833, allocations: 5.906 kB / 371.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.636e-05/0.2834, allocations: 7.094 kB / 371.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.2836, allocations: 39.69 kB / 371.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.588e-05/0.2836, allocations: 12.67 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.2839, allocations: 52.77 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.284, allocations: 19.84 kB / 371.7 MB, free: 19.74 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,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003805/0.2844, allocations: 261.9 kB / 372 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2845, allocations: 46.28 kB / 372 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/0.285, allocations: 231.2 kB / 372.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.285, allocations: 4.844 kB / 372.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.285, allocations: 1.766 kB / 372.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.285, allocations: 2.016 kB / 372.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.2861, allocations: 0.7442 MB / 373 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2861, allocations: 1.312 kB / 373 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.1e-05/0.2862, allocations: 21.61 kB / 373 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2862, allocations: 2.625 kB / 373 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.2863, allocations: 10.92 kB / 373 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/0.2863, allocations: 3 kB / 373 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2863, allocations: 4.969 kB / 373.1 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007675/0.287, allocations: 494.4 kB / 373.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.016e-05/0.2871, allocations: 117.9 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-05/0.2872, allocations: 18.89 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.2875, allocations: 28.11 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.2876, allocations: 42.34 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.2877, allocations: 16.78 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005057/0.2882, allocations: 327.5 kB / 374.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2882, allocations: 0 / 374.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005924/0.2888, allocations: 113.8 kB / 374.2 MB, free: 18.87 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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001792/0.2906, allocations: 1.376 MB / 375.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007595/0.2914, allocations: 424.4 kB / 376 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2914, allocations: 0 / 376 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.2917, allocations: 233.5 kB / 376.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.2923, allocations: 96.94 kB / 376.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.2974, allocations: 4.201 MB / 380.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.2979, allocations: 0.8349 MB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003369/0.2982, allocations: 79.73 kB / 381.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.2985, allocations: 158 kB / 381.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2985, allocations: 1.062 kB / 381.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.3251, allocations: 9.461 MB / 391 MB, free: 11.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.3253, allocations: 228.2 kB / 391.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.219/2.544, allocations: 0 / 391.3 MB, free: 10.9 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)