Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",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.0009988/0.0009989, allocations: 181.5 kB / 8.132 MB, free: 2.219 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.135/1.135, allocations: 221.4 MB / 229.9 MB, free: 3.355 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.0009495/0.0009495, allocations: 99.81 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08778/0.08875, allocations: 55.81 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.2657, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07799/0.3437, allocations: 76.86 MB / 463.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.344, allocations: 66.41 kB / 463.9 MB, free: 9.848 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008322/0.3523, allocations: 2.905 MB / 466.8 MB, free: 6.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.3524, allocations: 8 kB / 466.8 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.139e-05/0.3524, allocations: 27.66 kB / 466.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.3527, allocations: 226.6 kB / 467.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.3527, allocations: 4 kB / 467.1 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3527, allocations: 8 kB / 467.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002069/0.3529, allocations: 113.2 kB / 467.2 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.3532, allocations: 162.8 kB / 467.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3532, allocations: 7.938 kB / 467.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3532, allocations: 0 / 467.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3532, allocations: 7.984 kB / 467.4 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009459/0.3542, allocations: 0.751 MB / 468.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.3544, allocations: 141 kB / 468.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.658e-05/0.3545, allocations: 62.58 kB / 468.3 MB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.575e-05/0.3546, allocations: 4 kB / 468.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.3547, allocations: 117.1 kB / 468.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.375e-06/0.3547, allocations: 7.984 kB / 468.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003121/0.3551, allocations: 160.3 kB / 468.6 MB, free: 4.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.3551, allocations: 81.11 kB / 468.7 MB, free: 4.883 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.3553, allocations: 166.9 kB / 468.8 MB, free: 4.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.3553, allocations: 25.7 kB / 468.9 MB, free: 4.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.3554, allocations: 132.1 kB / 469 MB, free: 4.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.3554, allocations: 39.45 kB / 469 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.3554, allocations: 1.125 kB / 469 MB, free: 4.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.3555, allocations: 334.8 kB / 469.4 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.093e-05/0.3556, allocations: 51.98 kB / 469.4 MB, free: 4.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.3557, allocations: 110.8 kB / 469.5 MB, free: 3.988 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.3558, allocations: 63.91 kB / 469.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3559, allocations: 4 kB / 469.6 MB, free: 3.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003051/0.3562, allocations: 205.8 kB / 469.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/0.3562, allocations: 5.406 kB / 469.8 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3562, allocations: 4 kB / 469.8 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3562, allocations: 4 kB / 469.8 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3564, allocations: 36.16 kB / 469.8 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3564, allocations: 8.625 kB / 469.9 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.3566, allocations: 35.94 kB / 469.9 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.3566, allocations: 4 kB / 469.9 MB, free: 3.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 8.257e-05/0.3567, allocations: 127.8 kB / 470 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.3567, allocations: 19.72 kB / 470 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003151/0.3571, allocations: 173.9 kB / 470.2 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3571, allocations: 0 / 470.2 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3571, allocations: 0 / 470.2 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3571, allocations: 4 kB / 470.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.3573, allocations: 239 kB / 470.4 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3573, allocations: 0 / 470.4 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.3575, allocations: 28.77 kB / 470.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.3575, allocations: 0 / 470.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3575, allocations: 4 kB / 470.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3575, allocations: 0.625 kB / 470.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3575, allocations: 3.984 kB / 470.5 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002779/0.3578, allocations: 205.7 kB / 470.7 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003229/0.3581, allocations: 0.57 MB / 471.3 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-05/0.3582, allocations: 92.92 kB / 471.3 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3582, allocations: 7.984 kB / 471.3 MB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3584, allocations: 20.83 kB / 471.4 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.3584, allocations: 23.88 kB / 471.4 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.3585, allocations: 8 kB / 471.4 MB, free: 1.992 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.339e-05/0.3585, allocations: 129.5 kB / 471.5 MB, free: 1.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007961/0.3593, allocations: 39.84 kB / 471.6 MB, free: 1.828 MB / 346.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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001299/0.3595, allocations: 103.2 kB / 471.7 MB, free: 1.719 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.3597, allocations: 143.9 kB / 471.8 MB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3597, allocations: 288 / 471.8 MB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.3598, allocations: 68.3 kB / 471.9 MB, free: 1.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3601, allocations: 47.55 kB / 471.9 MB, free: 1.473 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005158/0.3606, allocations: 249.2 kB / 472.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/0.361, allocations: 0.7703 MB / 472.9 MB, free: 412 kB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.361, allocations: 0 / 472.9 MB, free: 412 kB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)