Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",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.000999/0.0009987, allocations: 179.5 kB / 8.478 MB, free: 1.875 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.072/1.072, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0009758/0.0009758, allocations: 97.91 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1538/0.1549, allocations: 52.95 MB / 315 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06143/0.2163, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.213/0.4293, allocations: 76.48 MB / 439.1 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.4296, allocations: 68.31 kB / 439.2 MB, free: 10.72 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.00828/0.4379, allocations: 2.982 MB / 442.2 MB, free: 10.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.4379, allocations: 7.625 kB / 442.2 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.849e-05/0.438, allocations: 24.38 kB / 442.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.4382, allocations: 230.9 kB / 442.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.4382, allocations: 7.562 kB / 442.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.4383, allocations: 8.078 kB / 442.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002054/0.4385, allocations: 116.3 kB / 442.5 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.4387, allocations: 173.1 kB / 442.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.4387, allocations: 0 / 442.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.4388, allocations: 4.406 kB / 442.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.4388, allocations: 7.844 kB / 442.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000915/0.4397, allocations: 0.7557 MB / 443.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.44, allocations: 126.8 kB / 443.6 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.091e-05/0.4401, allocations: 49.22 kB / 443.6 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.4402, allocations: 4.312 kB / 443.7 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001492/0.4403, allocations: 141.4 kB / 443.8 MB, free: 9.203 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.4403, allocations: 0 / 443.8 MB, free: 9.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002979/0.4406, allocations: 151.1 kB / 443.9 MB, free: 9.156 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.4407, allocations: 85.56 kB / 444 MB, free: 9.062 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.4408, allocations: 183.1 kB / 444.2 MB, free: 8.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.4408, allocations: 29.31 kB / 444.2 MB, free: 8.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.4409, allocations: 128.1 kB / 444.4 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.4409, allocations: 32.61 kB / 444.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.4409, allocations: 0 / 444.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.441, allocations: 329.9 kB / 444.7 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.078e-05/0.4411, allocations: 55.03 kB / 444.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.761e-05/0.4412, allocations: 118.5 kB / 444.9 MB, free: 8.398 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.4413, allocations: 65.48 kB / 444.9 MB, free: 8.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4413, allocations: 0 / 444.9 MB, free: 8.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002853/0.4416, allocations: 210 kB / 445.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.4416, allocations: 4.422 kB / 445.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.4416, allocations: 7.625 kB / 445.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.4416, allocations: 3.812 kB / 445.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.4418, allocations: 40.27 kB / 445.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.4418, allocations: 4.578 kB / 445.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.442, allocations: 36.8 kB / 445.2 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.442, allocations: 12.03 kB / 445.3 MB, free: 8.32 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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 7.233e-05/0.4421, allocations: 126.3 kB / 445.4 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.4422, allocations: 19.89 kB / 445.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.4424, allocations: 117.6 kB / 445.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4424, allocations: 3.844 kB / 445.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4424, allocations: 0 / 445.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4424, allocations: 1.688 kB / 445.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.4428, allocations: 439.8 kB / 445.9 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4429, allocations: 288 / 445.9 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.443, allocations: 20.2 kB / 446 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.443, allocations: 0 / 446 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.443, allocations: 11.75 kB / 446 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.443, allocations: 0.5156 kB / 446 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.443, allocations: 4 kB / 446 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002361/0.4433, allocations: 264.6 kB / 446.2 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002585/0.4435, allocations: 0.6331 MB / 446.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.4436, allocations: 89.41 kB / 447 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.4436, allocations: 0.6094 kB / 447 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.4438, allocations: 41.3 kB / 447 MB, free: 7.043 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.4439, allocations: 19.78 kB / 447 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.4439, allocations: 8.828 kB / 447 MB, free: 7.039 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.884e-05/0.444, allocations: 126.7 kB / 447.2 MB, free: 6.965 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008605/0.4449, allocations: 39.69 kB / 447.2 MB, free: 6.961 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001413/0.445, allocations: 108 kB / 447.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000222/0.4452, allocations: 148.5 kB / 447.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4452, allocations: 0 / 447.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.4454, allocations: 64.91 kB / 447.5 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.4456, allocations: 26.5 kB / 447.5 MB, free: 6.848 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.4461, allocations: 238.2 kB / 447.8 MB, free: 6.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.4464, allocations: 0.7724 MB / 448.5 MB, free: 6.008 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4464, allocations: 0 / 448.5 MB, free: 6.008 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)