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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009943/0.0009943, allocations: 182.9 kB / 8.477 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.098/1.098, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008509/0.0008509, allocations: 78.59 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1716/0.1724, allocations: 52.96 MB / 315 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06972/0.2422, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2341/0.4763, allocations: 81.81 MB / 444.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.4766, allocations: 77.3 kB / 444.5 MB, free: 10.71 MB / 314.7 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.02359/0.5002, allocations: 9.383 MB / 453.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.5002, allocations: 7.781 kB / 453.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.5004, allocations: 57.5 kB / 454 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.501, allocations: 386.1 kB / 454.3 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.968e-05/0.501, allocations: 45.77 kB / 454.4 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.5011, allocations: 27.05 kB / 454.4 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003735/0.5015, allocations: 221.4 kB / 454.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.502, allocations: 360.1 kB / 455 MB, free: 6.992 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.502, allocations: 4.656 kB / 455 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.5021, allocations: 7.828 kB / 455 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.5021, allocations: 12.12 kB / 455 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.5038, allocations: 1.603 MB / 456.6 MB, free: 5.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.5041, allocations: 262.7 kB / 456.9 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.5043, allocations: 114.3 kB / 457 MB, free: 5.617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-05/0.5043, allocations: 15.38 kB / 457 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.5046, allocations: 292.4 kB / 457.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.485e-06/0.5046, allocations: 0 / 457.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006052/0.5052, allocations: 300.2 kB / 457.6 MB, free: 5.312 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.5053, allocations: 161.8 kB / 457.7 MB, free: 5.125 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.5057, allocations: 422 kB / 458.1 MB, free: 4.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.5057, allocations: 32.95 kB / 458.2 MB, free: 4.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.5058, allocations: 180.8 kB / 458.3 MB, free: 4.801 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.5059, allocations: 64.91 kB / 458.4 MB, free: 4.762 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.5059, allocations: 7.812 kB / 458.4 MB, free: 4.758 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.517e-05/0.506, allocations: 359.1 kB / 458.8 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.5062, allocations: 98.89 kB / 458.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.5064, allocations: 254.5 kB / 459.1 MB, free: 4.238 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.5068, allocations: 125.9 kB / 459.2 MB, free: 4.211 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.5068, allocations: 1.312 kB / 459.2 MB, free: 4.211 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006794/0.5075, allocations: 387.7 kB / 459.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.5075, allocations: 5.156 kB / 459.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.5075, allocations: 3.906 kB / 459.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.5075, allocations: 10.5 kB / 459.6 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.5077, allocations: 42.83 kB / 459.7 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.5077, allocations: 10.58 kB / 459.7 MB, free: 4.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.508, allocations: 44.91 kB / 459.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.508, allocations: 22.25 kB / 459.7 MB, free: 4.051 MB / 314.7 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,rSFlipFlop.S,rSFlipFlop.R,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 () * 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.0001369/0.5082, allocations: 176 kB / 459.9 MB, free: 3.895 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.5082, allocations: 45.53 kB / 460 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006342/0.5089, allocations: 333.3 kB / 460.3 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.5089, allocations: 4 kB / 460.3 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5089, allocations: 1.281 kB / 460.3 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.5089, allocations: 3.984 kB / 460.3 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.51, allocations: 0.7333 MB / 461 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.51, allocations: 1.344 kB / 461 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.957e-05/0.5101, allocations: 20.75 kB / 461.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.5101, allocations: 2.5 kB / 461.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.5101, allocations: 12.2 kB / 461.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.5101, allocations: 2.531 kB / 461.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5101, allocations: 5.188 kB / 461.1 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006314/0.5108, allocations: 448.5 kB / 461.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007344/0.5115, allocations: 0.8345 MB / 462.3 MB, free: 2.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.773e-05/0.5116, allocations: 127.9 kB / 462.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.239e-05/0.5117, allocations: 5.156 kB / 462.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.512, allocations: 33.36 kB / 462.5 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.843e-05/0.5121, allocations: 34.94 kB / 462.5 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.5121, allocations: 20.3 kB / 462.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003237/0.5125, allocations: 294.4 kB / 462.8 MB, free: 2.188 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001093/0.5136, allocations: 108.8 kB / 463 MB, free: 2.176 MB / 314.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.000805/0.5144, allocations: 358.3 kB / 463.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005247/0.5149, allocations: 325 kB / 463.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5149, allocations: 4.062 kB / 463.6 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.5152, allocations: 204.1 kB / 463.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.5157, allocations: 72.94 kB / 463.9 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.5171, allocations: 0.591 MB / 464.5 MB, free: 1.512 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/0.5177, allocations: 0.894 MB / 465.4 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5177, allocations: 0 / 465.4 MB, free: 0.7266 MB / 314.7 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)