Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json 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) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",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/Buildings 7.0.1/package.mo): time 2.487/2.487, allocations: 248.6 MB / 255.9 MB, free: 7.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002508/0.002508, allocations: 200.2 kB / 315.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.1 MB / 0.5658 GB, free: 448 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001332/0.001331, allocations: 94.2 kB / 0.67 GB, free: 5.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4677/0.4691, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.7063, allocations: 106.3 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.45/2.156, allocations: 424.7 MB / 1.298 GB, free: 261.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/2.156, allocations: 95.72 kB / 1.298 GB, free: 261.1 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 4.251/6.408, allocations: 0.9472 GB / 2.246 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/6.408, allocations: 8 kB / 2.246 GB, free: 2.805 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001942/6.41, allocations: 320.3 kB / 2.246 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009293/6.419, allocations: 2.425 MB / 2.248 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.55e-05/6.419, allocations: 48 kB / 2.248 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005187/6.42, allocations: 100 kB / 2.248 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004155/6.424, allocations: 0.9898 MB / 2.249 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004808/6.429, allocations: 1.302 MB / 2.251 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.8e-05/6.429, allocations: 4 kB / 2.251 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/6.429, allocations: 8 kB / 2.251 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.346e-05/6.429, allocations: 43.94 kB / 2.251 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/6.45, allocations: 7.982 MB / 2.258 GB, free: 4.977 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/6.451, allocations: 417.4 kB / 2.259 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008043/6.452, allocations: 310.8 kB / 2.259 GB, free: 4.258 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009516/6.453, allocations: 0.7563 MB / 2.26 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/6.453, allocations: 43.05 kB / 2.26 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.376e-06/6.453, allocations: 0 / 2.26 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.002978/6.456, allocations: 0.7167 MB / 2.261 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/6.456, allocations: 59.91 kB / 2.261 GB, free: 2.488 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/6.462, allocations: 1.673 MB / 2.262 GB, free: 0.793 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003622/6.462, allocations: 29.7 kB / 2.262 GB, free: 0.7578 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.4237/6.886, allocations: 0.7428 MB / 2.263 GB, free: 187 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000551/6.886, allocations: 205.8 kB / 2.263 GB, free: 187 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/6.886, allocations: 3.469 kB / 2.263 GB, free: 187 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001258/6.887, allocations: 348.5 kB / 2.264 GB, free: 186.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009132/6.888, allocations: 303.8 kB / 2.264 GB, free: 186.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/6.889, allocations: 0.7593 MB / 2.265 GB, free: 186.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/6.891, allocations: 464.5 kB / 2.265 GB, free: 186.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/6.891, allocations: 0 / 2.265 GB, free: 186.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.004249/6.895, allocations: 1.12 MB / 2.266 GB, free: 186.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007456/6.896, allocations: 3.15 MB / 2.269 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.079e-05/6.896, allocations: 6.594 kB / 2.269 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.749e-05/6.896, allocations: 17.06 kB / 2.269 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002291/6.898, allocations: 260.3 kB / 2.269 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.082e-05/6.898, allocations: 26.22 kB / 2.27 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/6.902, allocations: 201.1 kB / 2.27 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003475/6.902, allocations: 50.14 kB / 2.27 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/6.902, allocations: 3.875 kB / 2.27 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00273/6.905, allocations: 0.8544 MB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/6.905, allocations: 6.375 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/6.905, allocations: 18.31 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/6.907, allocations: 253.2 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-05/6.907, allocations: 18.88 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/6.911, allocations: 173.4 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/6.911, allocations: 54.84 kB / 2.271 GB, free: 182.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * 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 0.0004174/6.912, allocations: 137.9 kB / 2.271 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007786/6.912, allocations: 201.5 kB / 2.271 GB, free: 182.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003115/6.916, allocations: 0.8447 MB / 2.272 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/6.916, allocations: 13.16 kB / 2.272 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/6.916, allocations: 3.906 kB / 2.272 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001591/6.917, allocations: 0.659 MB / 2.273 GB, free: 182.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/6.929, allocations: 2.388 MB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/6.929, allocations: 3.906 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/6.931, allocations: 155.1 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-05/6.931, allocations: 2.75 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/6.931, allocations: 13.44 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.304e-05/6.931, allocations: 5.906 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/6.931, allocations: 0.9375 kB / 2.275 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003842/6.935, allocations: 1.278 MB / 2.277 GB, free: 181.5 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004385/6.939, allocations: 2.115 MB / 2.279 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001764/6.941, allocations: 427 kB / 2.279 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007739/6.942, allocations: 0 / 2.279 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003092/6.945, allocations: 158.7 kB / 2.279 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/6.945, allocations: 44.34 kB / 2.279 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/6.946, allocations: 33.88 kB / 2.279 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.003371/6.949, allocations: 1.23 MB / 2.281 GB, free: 180.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.009698/6.959, allocations: 1.549 MB / 2.282 GB, free: 180.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.003028/6.962, allocations: 1.183 MB / 2.283 GB, free: 180.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003699/6.966, allocations: 1.318 MB / 2.285 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/6.966, allocations: 2.062 kB / 2.285 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008017/6.966, allocations: 306.9 kB / 2.285 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01252/6.979, allocations: 1.242 MB / 2.286 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/6.99, allocations: 2.838 MB / 2.289 GB, free: 179.3 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003424/6.994, allocations: 1.825 MB / 2.291 GB, free: 178.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.653e-06/6.994, allocations: 0 / 2.291 GB, free: 178.6 MB / 0.8855 GB