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.001369/0.00137, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001366, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 60.62 kB / 306.3 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1052, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003949/0.1092, allocations: 2.51 MB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00301/0.1122, allocations: 1.461 MB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003545/0.1126, allocations: 15.94 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007174/0.1133, allocations: 214.7 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.1138, allocations: 175.4 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006655/0.1145, allocations: 227.6 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1152, allocations: 459.7 kB / 361.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003767/0.1155, allocations: 205.8 kB / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.1158, allocations: 171.3 kB / 362.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.1161, allocations: 210.9 kB / 362.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.099e-05/0.1162, allocations: 20 kB / 362.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002976/0.1165, allocations: 95.89 kB / 362.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1166, allocations: 115.6 kB / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.1169, allocations: 210.6 kB / 362.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008963/0.1178, allocations: 0.4986 MB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/0.1178, allocations: 0 / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1178, allocations: 7.938 kB / 363.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.582e-05/0.1178, allocations: 0 / 363.4 MB, free: 7.832 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.001998/0.1198, allocations: 0.8536 MB / 364.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1199, allocations: 8.031 kB / 364.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002313/0.1201, allocations: 78.72 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.1205, allocations: 64.27 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.1211, allocations: 394.9 kB / 364.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.082e-05/0.1211, allocations: 63.02 kB / 364.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/0.1212, allocations: 40 kB / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007082/0.1219, allocations: 428.7 kB / 365.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.122, allocations: 4 kB / 365.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.122, allocations: 16 kB / 365.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.122, allocations: 16.38 kB / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004945/0.1225, allocations: 269.5 kB / 365.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.1246, allocations: 1.674 MB / 367.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000676/0.1253, allocations: 299.8 kB / 367.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.1255, allocations: 126.5 kB / 367.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.1256, allocations: 15.98 kB / 367.7 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005197/0.1261, allocations: 327.7 kB / 368.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/0.1261, allocations: 7.938 kB / 368.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001015/0.1271, allocations: 465.9 kB / 368.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/0.1272, allocations: 166.2 kB / 368.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006074/0.1278, allocations: 497.2 kB / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.1279, allocations: 45.69 kB / 369.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.1281, allocations: 232.6 kB / 369.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.444e-05/0.1281, allocations: 82.98 kB / 369.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.1284, allocations: 126.1 kB / 369.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1286, allocations: 358.7 kB / 370 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.1288, allocations: 117.1 kB / 370.1 MB, free: 0.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.1291, allocations: 262.7 kB / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1706/0.2998, allocations: 405.6 kB / 370.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/0.2998, allocations: 1.688 kB / 370.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00131/0.3012, allocations: 459.3 kB / 371.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.3012, allocations: 36.38 kB / 371.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.3012, allocations: 5.078 kB / 371.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.3013, allocations: 6.469 kB / 371.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.3015, allocations: 44.12 kB / 371.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.3015, allocations: 15.94 kB / 371.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.3019, allocations: 53.27 kB / 371.4 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3019, allocations: 21.06 kB / 371.4 MB, free: 19.81 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.0003451/0.3023, allocations: 262.7 kB / 371.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3024, allocations: 45.8 kB / 371.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005608/0.303, allocations: 227.1 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.303, allocations: 4.844 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.303, allocations: 4.219 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.303, allocations: 2.578 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.3043, allocations: 0.7449 MB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3043, allocations: 0.9375 kB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.423e-05/0.3044, allocations: 14.77 kB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.3044, allocations: 5.516 kB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.3045, allocations: 11.33 kB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3045, allocations: 1.719 kB / 372.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3045, allocations: 5.75 kB / 372.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008788/0.3054, allocations: 492.5 kB / 373.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.3055, allocations: 120.1 kB / 373.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.811e-05/0.3056, allocations: 21.69 kB / 373.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.3059, allocations: 28.28 kB / 373.4 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.306, allocations: 40.38 kB / 373.4 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.3061, allocations: 15.66 kB / 373.4 MB, free: 19.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004811/0.3066, allocations: 330 kB / 373.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3066, allocations: 1.375 kB / 373.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000743/0.3073, allocations: 114.2 kB / 373.8 MB, free: 18.93 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.00228/0.3096, allocations: 1.373 MB / 375.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008202/0.3105, allocations: 399.2 kB / 375.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3105, allocations: 1.844 kB / 375.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000419/0.3109, allocations: 232.9 kB / 375.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007917/0.3117, allocations: 87.62 kB / 375.9 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/0.3175, allocations: 4.195 MB / 380.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.3178, allocations: 0.8346 MB / 381 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001851/0.318, allocations: 72.66 kB / 381 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.3182, allocations: 158.4 kB / 381.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3182, allocations: 0 / 381.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.3377, allocations: 9.209 MB / 390.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/0.3378, allocations: 230.9 kB / 390.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.374, allocations: 0 / 390.6 MB, free: 11.18 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)