Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.208/1.208, allocations: 249.4 MB / 256.7 MB, free: 0.6172 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 181.2 kB / 316 MB, free: 8.859 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.1 MB / 0.5667 GB, free: 13.41 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008119/0.0008119, allocations: 89.78 kB / 0.671 GB, free: 51.61 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.198/0.1989, allocations: 112.5 MB / 0.7808 GB, free: 9.848 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5313/0.7303, allocations: 106.3 MB / 0.8846 GB, free: 89.3 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6738/1.404, allocations: 423.9 MB / 1.299 GB, free: 215.1 MB / 0.8309 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/1.405, allocations: 102.3 kB / 1.299 GB, free: 215.1 MB / 0.8309 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 2.779/4.184, allocations: 0.9471 GB / 2.246 GB, free: 106.1 MB / 0.8777 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/4.184, allocations: 12.41 kB / 2.246 GB, free: 106.1 MB / 0.8777 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/4.185, allocations: 317.1 kB / 2.246 GB, free: 105.9 MB / 0.8777 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005702/4.191, allocations: 2.432 MB / 2.249 GB, free: 105.5 MB / 0.8777 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.709e-05/4.191, allocations: 46.31 kB / 2.249 GB, free: 105.5 MB / 0.8777 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/4.192, allocations: 106.8 kB / 2.249 GB, free: 105.5 MB / 0.8777 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002065/4.194, allocations: 0.9843 MB / 2.25 GB, free: 105.5 MB / 0.8777 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/4.196, allocations: 1.301 MB / 2.251 GB, free: 105.3 MB / 0.8777 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/4.196, allocations: 0 / 2.251 GB, free: 105.3 MB / 0.8777 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/4.196, allocations: 3.875 kB / 2.251 GB, free: 105.3 MB / 0.8777 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/4.196, allocations: 44.12 kB / 2.251 GB, free: 105.3 MB / 0.8777 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008885/4.205, allocations: 7.972 MB / 2.259 GB, free: 101.3 MB / 0.8777 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007971/4.206, allocations: 403.5 kB / 2.259 GB, free: 101.3 MB / 0.8777 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005978/4.206, allocations: 316.6 kB / 2.259 GB, free: 101.3 MB / 0.8777 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006089/4.207, allocations: 0.758 MB / 2.26 GB, free: 100.4 MB / 0.8777 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/4.207, allocations: 47.53 kB / 2.26 GB, free: 100.4 MB / 0.8777 GB Notification: Performance of pre-optimization done (n=60): time 3.537e-06/4.207, allocations: 0 / 2.26 GB, free: 100.4 MB / 0.8777 GB Notification: Performance of matching and sorting (n=60): time 0.00213/4.209, allocations: 0.7228 MB / 2.261 GB, free: 100.3 MB / 0.8777 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/4.209, allocations: 59.81 kB / 2.261 GB, free: 100.2 MB / 0.8777 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/4.213, allocations: 1.675 MB / 2.263 GB, free: 99.96 MB / 0.8777 GB Notification: Performance of collectPreVariables (initialization): time 0.0001616/4.213, allocations: 29.36 kB / 2.263 GB, free: 99.93 MB / 0.8777 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006107/4.214, allocations: 0.7414 MB / 2.263 GB, free: 99.52 MB / 0.8777 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/4.214, allocations: 206.8 kB / 2.264 GB, free: 99.39 MB / 0.8777 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/4.214, allocations: 0 / 2.264 GB, free: 99.39 MB / 0.8777 GB Notification: Performance of setup shared object (initialization): time 8.209e-05/4.214, allocations: 350.2 kB / 2.264 GB, free: 99.09 MB / 0.8777 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006843/4.215, allocations: 302 kB / 2.264 GB, free: 99.08 MB / 0.8777 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008936/4.216, allocations: 0.7668 MB / 2.265 GB, free: 98.56 MB / 0.8777 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/4.217, allocations: 465 kB / 2.265 GB, free: 98.55 MB / 0.8777 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/4.217, allocations: 0 / 2.265 GB, free: 98.55 MB / 0.8777 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00181/4.219, allocations: 1.117 MB / 2.266 GB, free: 98.4 MB / 0.8777 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004554/4.219, allocations: 3.152 MB / 2.27 GB, free: 95.04 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/4.219, allocations: 6.625 kB / 2.27 GB, free: 95.04 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/4.219, allocations: 15.34 kB / 2.27 GB, free: 95.04 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009793/4.22, allocations: 264.8 kB / 2.27 GB, free: 95.04 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/4.22, allocations: 16.91 kB / 2.27 GB, free: 95.04 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/4.222, allocations: 202.4 kB / 2.27 GB, free: 94.97 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.354e-05/4.222, allocations: 54.7 kB / 2.27 GB, free: 94.97 MB / 0.8777 GB Notification: Performance of prepare postOptimizeDAE: time 7.765e-06/4.222, allocations: 11.02 kB / 2.27 GB, free: 94.97 MB / 0.8777 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001316/4.223, allocations: 0.856 MB / 2.271 GB, free: 94.95 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/4.223, allocations: 7.844 kB / 2.271 GB, free: 94.95 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/4.223, allocations: 14.69 kB / 2.271 GB, free: 94.95 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/4.224, allocations: 252.2 kB / 2.271 GB, free: 94.95 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/4.224, allocations: 20.75 kB / 2.271 GB, free: 94.95 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/4.226, allocations: 172.8 kB / 2.271 GB, free: 94.91 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.298e-05/4.226, allocations: 55.16 kB / 2.271 GB, free: 94.91 MB / 0.8777 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.0001756/4.226, allocations: 135.5 kB / 2.272 GB, free: 94.8 MB / 0.8777 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003059/4.226, allocations: 204.5 kB / 2.272 GB, free: 94.69 MB / 0.8777 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/4.228, allocations: 0.8413 MB / 2.273 GB, free: 94.61 MB / 0.8777 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/4.228, allocations: 9.609 kB / 2.273 GB, free: 94.61 MB / 0.8777 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/4.228, allocations: 0 / 2.273 GB, free: 94.61 MB / 0.8777 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008016/4.229, allocations: 0.6633 MB / 2.273 GB, free: 94.44 MB / 0.8777 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/4.232, allocations: 2.392 MB / 2.276 GB, free: 94.08 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/4.232, allocations: 2.906 kB / 2.276 GB, free: 94.08 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/4.233, allocations: 148.8 kB / 2.276 GB, free: 94.08 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/4.233, allocations: 2.781 kB / 2.276 GB, free: 94.08 MB / 0.8777 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/4.233, allocations: 15.16 kB / 2.276 GB, free: 94.07 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/4.233, allocations: 5.844 kB / 2.276 GB, free: 94.07 MB / 0.8777 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/4.233, allocations: 6.875 kB / 2.276 GB, free: 94.07 MB / 0.8777 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001639/4.235, allocations: 1.274 MB / 2.277 GB, free: 93.71 MB / 0.8777 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002242/4.237, allocations: 2.119 MB / 2.279 GB, free: 92.96 MB / 0.8777 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008019/4.238, allocations: 426.2 kB / 2.279 GB, free: 92.75 MB / 0.8777 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/4.238, allocations: 10.45 kB / 2.279 GB, free: 92.75 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/4.239, allocations: 148.4 kB / 2.28 GB, free: 92.74 MB / 0.8777 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/4.239, allocations: 41.91 kB / 2.28 GB, free: 92.74 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.359e-05/4.239, allocations: 34.28 kB / 2.28 GB, free: 92.73 MB / 0.8777 GB Notification: Performance of sort global known variables: time 0.001746/4.241, allocations: 1.236 MB / 2.281 GB, free: 92.59 MB / 0.8777 GB Notification: Performance of remove unused functions: time 0.005155/4.246, allocations: 1.556 MB / 2.282 GB, free: 92.38 MB / 0.8777 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.001785/4.248, allocations: 1.184 MB / 2.284 GB, free: 92.07 MB / 0.8777 GB Notification: Performance of simCode: created initialization part: time 0.001914/4.25, allocations: 1.318 MB / 2.285 GB, free: 92.04 MB / 0.8777 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/4.25, allocations: 0 / 2.285 GB, free: 92.04 MB / 0.8777 GB Notification: Performance of simCode: created simulation system equations: time 0.0003524/4.25, allocations: 309 kB / 2.285 GB, free: 92.04 MB / 0.8777 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005399/4.256, allocations: 1.246 MB / 2.286 GB, free: 92.02 MB / 0.8777 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00533/4.261, allocations: 2.84 MB / 2.289 GB, free: 91.24 MB / 0.8777 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/4.263, allocations: 1.822 MB / 2.291 GB, free: 90.5 MB / 0.8777 GB Notification: Performance of SimCode: time 1.372e-06/4.263, allocations: 0 / 2.291 GB, free: 90.5 MB / 0.8777 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)