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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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"}) [: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 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 180.8 kB / 8.128 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 105.6 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09851/0.09947, allocations: 55.8 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.2978, allocations: 50.4 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09443/0.3923, allocations: 83.05 MB / 470 MB, free: 3.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3926, allocations: 77.73 kB / 470.1 MB, free: 3.715 MB / 346.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.02574/0.4183, allocations: 9.542 MB / 479.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4184, allocations: 8 kB / 479.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.4185, allocations: 55.34 kB / 479.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006335/0.4191, allocations: 396.3 kB / 480.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.4192, allocations: 42.48 kB / 480.2 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.4193, allocations: 33.95 kB / 480.2 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004191/0.4197, allocations: 217.4 kB / 480.4 MB, free: 9.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.4203, allocations: 360.4 kB / 480.7 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4203, allocations: 0 / 480.7 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.4203, allocations: 7.984 kB / 480.8 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.4204, allocations: 12.44 kB / 480.8 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.4222, allocations: 1.602 MB / 482.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.4226, allocations: 264 kB / 482.6 MB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.4228, allocations: 114.5 kB / 482.7 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.004e-05/0.4229, allocations: 8 kB / 482.7 MB, free: 6.863 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000368/0.4233, allocations: 305.1 kB / 483 MB, free: 6.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.883e-06/0.4233, allocations: 0 / 483 MB, free: 6.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007008/0.424, allocations: 296 kB / 483.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4241, allocations: 158.4 kB / 483.5 MB, free: 6.039 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004938/0.4246, allocations: 420.6 kB / 483.9 MB, free: 5.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.4247, allocations: 29.7 kB / 483.9 MB, free: 5.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.4248, allocations: 188.5 kB / 484.1 MB, free: 5.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.398e-05/0.4249, allocations: 75.06 kB / 484.2 MB, free: 5.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.4249, allocations: 4.75 kB / 484.2 MB, free: 5.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4251, allocations: 358.8 kB / 484.5 MB, free: 4.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.4252, allocations: 101 kB / 484.6 MB, free: 4.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.4255, allocations: 249 kB / 484.9 MB, free: 4.559 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.4258, allocations: 132.9 kB / 485 MB, free: 4.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4258, allocations: 4 kB / 485 MB, free: 4.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006646/0.4265, allocations: 377.1 kB / 485.4 MB, free: 4.051 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.4265, allocations: 4 kB / 485.4 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.4266, allocations: 5.031 kB / 485.4 MB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.4266, allocations: 8 kB / 485.4 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.4268, allocations: 51.78 kB / 485.5 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.4268, allocations: 12.31 kB / 485.5 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.427, allocations: 31.97 kB / 485.5 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.56e-05/0.4271, allocations: 24 kB / 485.5 MB, free: 3.918 MB / 362.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.0001674/0.4273, allocations: 182.6 kB / 485.7 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.4273, allocations: 43.53 kB / 485.7 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006535/0.428, allocations: 327.1 kB / 486.1 MB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.428, allocations: 4 kB / 486.1 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.428, allocations: 96 / 486.1 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.428, allocations: 11.92 kB / 486.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.4291, allocations: 0.7305 MB / 486.8 MB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4291, allocations: 7.938 kB / 486.8 MB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.4292, allocations: 19.92 kB / 486.8 MB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4292, allocations: 8 kB / 486.8 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.4292, allocations: 7.984 kB / 486.8 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4293, allocations: 4 kB / 486.9 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4293, allocations: 7.938 kB / 486.9 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006343/0.4299, allocations: 455.5 kB / 487.3 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007296/0.4306, allocations: 0.8193 MB / 488.1 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4308, allocations: 128.5 kB / 488.3 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.4309, allocations: 7.984 kB / 488.3 MB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.4311, allocations: 27.98 kB / 488.3 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4312, allocations: 39.94 kB / 488.3 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.4313, allocations: 19.98 kB / 488.3 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002962/0.4316, allocations: 291.2 kB / 488.6 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001048/0.4326, allocations: 112.1 kB / 488.7 MB, free: 0.5508 MB / 362.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.0007174/0.4333, allocations: 354.1 kB / 489.1 MB, free: 288 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005088/0.4339, allocations: 326.2 kB / 489.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4339, allocations: 4.062 kB / 489.4 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002525/0.4341, allocations: 205.4 kB / 489.6 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.4346, allocations: 73.38 kB / 489.7 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.4357, allocations: 0.5782 MB / 490.3 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005429/0.4363, allocations: 0.9019 MB / 491.2 MB, free: 14.14 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4363, allocations: 0 / 491.2 MB, free: 14.14 MB / 378.7 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)