Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 179.6 kB / 8.478 MB, free: 1.844 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.061/1.061, allocations: 205.2 MB / 214.1 MB, free: 5.449 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.0008474/0.0008474, allocations: 87.33 kB / 262.1 MB, free: 5.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1551/0.156, allocations: 52.96 MB / 315 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06676/0.2228, allocations: 47.57 MB / 362.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.216/0.4388, allocations: 76.06 MB / 438.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001783/0.4391, allocations: 64.67 kB / 438.7 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.007497/0.4466, allocations: 2.859 MB / 441.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.4466, allocations: 7.688 kB / 441.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.4467, allocations: 27.19 kB / 441.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.4469, allocations: 235 kB / 441.9 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.4469, allocations: 3.844 kB / 441.9 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.447, allocations: 11.59 kB / 441.9 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002046/0.4472, allocations: 111.2 kB / 442 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.4474, allocations: 160.9 kB / 442.1 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4474, allocations: 4.562 kB / 442.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.4474, allocations: 0 / 442.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.4475, allocations: 12.42 kB / 442.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008445/0.4483, allocations: 0.7487 MB / 442.9 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.4485, allocations: 138.3 kB / 443 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.837e-05/0.4486, allocations: 66.06 kB / 443.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.4486, allocations: 8.516 kB / 443.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.4488, allocations: 126.3 kB / 443.2 MB, free: 9.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.203e-06/0.4488, allocations: 0 / 443.2 MB, free: 9.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002909/0.4491, allocations: 152 kB / 443.4 MB, free: 9.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.4491, allocations: 89.25 kB / 443.5 MB, free: 9.012 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.4492, allocations: 167 kB / 443.6 MB, free: 8.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4493, allocations: 30.08 kB / 443.7 MB, free: 8.879 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.4493, allocations: 123.4 kB / 443.8 MB, free: 8.777 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.4493, allocations: 38.33 kB / 443.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.148e-06/0.4494, allocations: 0 / 443.8 MB, free: 8.754 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.123e-05/0.4494, allocations: 333.8 kB / 444.2 MB, free: 8.441 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.811e-05/0.4495, allocations: 50.86 kB / 444.2 MB, free: 8.441 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.304e-05/0.4496, allocations: 115.5 kB / 444.3 MB, free: 8.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.4497, allocations: 66.84 kB / 444.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4497, allocations: 4 kB / 444.4 MB, free: 8.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002762/0.45, allocations: 203.6 kB / 444.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.45, allocations: 6.359 kB / 444.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.45, allocations: 0 / 444.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.45, allocations: 3.844 kB / 444.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.4502, allocations: 37.06 kB / 444.6 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.4502, allocations: 8.062 kB / 444.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.4504, allocations: 33.42 kB / 444.7 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.4504, allocations: 11.95 kB / 444.7 MB, free: 8.293 MB / 314.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 6.206e-05/0.4505, allocations: 116 kB / 444.8 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.4505, allocations: 20.11 kB / 444.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.4508, allocations: 177.2 kB / 445 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.4509, allocations: 0.5156 kB / 445 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4509, allocations: 0 / 445 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.4509, allocations: 1.266 kB / 445 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.4511, allocations: 238.2 kB / 445.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.4511, allocations: 0 / 445.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.4512, allocations: 35.08 kB / 445.3 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4512, allocations: 0 / 445.3 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.4512, allocations: 4.781 kB / 445.3 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.4512, allocations: 7.875 kB / 445.3 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4512, allocations: 0.6094 kB / 445.3 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000223/0.4515, allocations: 196.8 kB / 445.5 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002454/0.4517, allocations: 0.5814 MB / 446 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.909e-05/0.4518, allocations: 90.02 kB / 446.1 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.4518, allocations: 0.5156 kB / 446.1 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.452, allocations: 33.36 kB / 446.2 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.452, allocations: 10.62 kB / 446.2 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.452, allocations: 8.516 kB / 446.2 MB, free: 7.262 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.815e-05/0.4521, allocations: 127.8 kB / 446.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007856/0.4529, allocations: 46 kB / 446.4 MB, free: 7.176 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: 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.0001302/0.453, allocations: 99.7 kB / 446.5 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.4533, allocations: 145.3 kB / 446.6 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4533, allocations: 0 / 446.6 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.4534, allocations: 67.62 kB / 446.7 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.4536, allocations: 37.55 kB / 446.7 MB, free: 7.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004818/0.4541, allocations: 251 kB / 446.9 MB, free: 6.949 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000209/0.4543, allocations: 0.7568 MB / 447.7 MB, free: 6.246 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4544, allocations: 0 / 447.7 MB, free: 6.246 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)