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.0007305/0.0007306, allocations: 95.33 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008665/0.0008665, allocations: 203.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 227.7 MB / 246.8 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001964/0.0001964, allocations: 8 kB / 307.8 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.0859, allocations: 51.52 MB / 359.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002592/0.08852, allocations: 2.14 MB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.09082, allocations: 1.426 MB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.09105, allocations: 7.938 kB / 362.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005832/0.09165, allocations: 211.3 kB / 363.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.09208, allocations: 183.4 kB / 363.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.09265, allocations: 223.6 kB / 363.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.09314, allocations: 455.7 kB / 364 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.09345, allocations: 205.8 kB / 364.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.09366, allocations: 143.2 kB / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.09388, allocations: 175 kB / 364.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.09393, allocations: 12 kB / 364.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.09412, allocations: 87.88 kB / 364.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.09423, allocations: 95.55 kB / 364.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.09441, allocations: 212.4 kB / 364.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.09489, allocations: 494.4 kB / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.0949, allocations: 0 / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.09491, allocations: 0 / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.09493, allocations: 11.94 kB / 365.4 MB, free: 6.902 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.001133/0.09607, allocations: 0.7659 MB / 366.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.09611, allocations: 12.03 kB / 366.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.385e-05/0.0962, allocations: 74.72 kB / 366.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.09642, allocations: 64.27 kB / 366.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.0969, allocations: 390.9 kB / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.423e-05/0.09697, allocations: 63.02 kB / 366.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.09703, allocations: 40 kB / 366.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006015/0.09764, allocations: 428.7 kB / 367.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.09766, allocations: 7.938 kB / 367.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.0977, allocations: 12 kB / 367.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.024e-05/0.09773, allocations: 16.44 kB / 367.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.09819, allocations: 272.6 kB / 367.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.09996, allocations: 1.69 MB / 369.2 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.1005, allocations: 295.8 kB / 369.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.1007, allocations: 134.5 kB / 369.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.1008, allocations: 12 kB / 369.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004254/0.1012, allocations: 335.6 kB / 369.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.1012, allocations: 0 / 369.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008341/0.1021, allocations: 472.4 kB / 370.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.1022, allocations: 166.2 kB / 370.6 MB, free: 1.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004924/0.1027, allocations: 0.4896 MB / 371.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.1027, allocations: 41.69 kB / 371.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.1029, allocations: 232.6 kB / 371.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-05/0.103, allocations: 82.98 kB / 371.4 MB, free: 500 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.103, allocations: 73.67 kB / 371.5 MB, free: 420 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1032, allocations: 370.7 kB / 371.8 MB, free: 40 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1343/0.2375, allocations: 111.4 kB / 371.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.2378, allocations: 263.5 kB / 372.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004491/0.2383, allocations: 405.7 kB / 372.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2383, allocations: 0 / 372.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007461/0.239, allocations: 472 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.2391, allocations: 38.92 kB / 373.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2391, allocations: 5.125 kB / 373.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.2391, allocations: 6.531 kB / 373.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.2393, allocations: 42.73 kB / 373.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2393, allocations: 11.73 kB / 373.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.2395, allocations: 57.56 kB / 373.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.2395, allocations: 18.47 kB / 373.2 MB, free: 18.05 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.0002546/0.2398, allocations: 260.5 kB / 373.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.2399, allocations: 47.88 kB / 373.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.2403, allocations: 233.7 kB / 373.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.2403, allocations: 4.812 kB / 373.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.2403, allocations: 5.156 kB / 373.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2403, allocations: 3.062 kB / 373.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000875/0.2412, allocations: 0.7442 MB / 374.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2412, allocations: 1.094 kB / 374.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.402e-05/0.2413, allocations: 22.7 kB / 374.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2413, allocations: 3.031 kB / 374.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.2413, allocations: 13.19 kB / 374.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.2413, allocations: 2.516 kB / 374.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2413, allocations: 5.344 kB / 374.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/0.2419, allocations: 490.8 kB / 375 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.242, allocations: 129 kB / 375.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.2421, allocations: 15.56 kB / 375.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.2423, allocations: 31.03 kB / 375.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.2424, allocations: 44 kB / 375.3 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.2424, allocations: 19.75 kB / 375.3 MB, free: 17.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003344/0.2428, allocations: 329.7 kB / 375.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2428, allocations: 0 / 375.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004505/0.2432, allocations: 112.6 kB / 375.7 MB, free: 17.15 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.001609/0.2448, allocations: 1.391 MB / 377.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006368/0.2455, allocations: 394.1 kB / 377.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2455, allocations: 0 / 377.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.2458, allocations: 234 kB / 377.7 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.2464, allocations: 82.98 kB / 377.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004306/0.2507, allocations: 4.205 MB / 382 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.251, allocations: 0.836 MB / 382.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.2512, allocations: 80.64 kB / 382.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.2513, allocations: 158.5 kB / 383.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2513, allocations: 0 / 383.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.2701, allocations: 8.957 MB / 392 MB, free: 10.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001218/0.2702, allocations: 231 kB / 392.3 MB, free: 10 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.09, allocations: 3.938 kB / 392.3 MB, free: 9.996 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)