Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.915/1.915, allocations: 289.8 MB / 297.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 181.2 kB / 366.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.1 MB / 0.6256 GB, free: 7.559 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009816/0.0009815, allocations: 93.98 kB / 0.7396 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3235/0.3245, allocations: 122.4 MB / 0.8591 GB, free: 13.52 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7988/1.123, allocations: 116.3 MB / 0.9726 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9798/2.103, allocations: 432.5 MB / 1.395 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/2.104, allocations: 97.78 kB / 1.395 GB, free: 124.3 MB / 0.8542 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.039/6.143, allocations: 0.9737 GB / 2.369 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/6.143, allocations: 7.938 kB / 2.369 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002085/6.145, allocations: 322.5 kB / 2.369 GB, free: 121.5 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007717/6.153, allocations: 2.428 MB / 2.372 GB, free: 121.1 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.814e-05/6.153, allocations: 45.97 kB / 2.372 GB, free: 121.1 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002678/6.153, allocations: 114.3 kB / 2.372 GB, free: 121.1 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002163/6.155, allocations: 0.9929 MB / 2.373 GB, free: 121.1 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/6.157, allocations: 1.304 MB / 2.374 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.308e-05/6.158, allocations: 13.78 kB / 2.374 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/6.158, allocations: 0 / 2.374 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.947e-05/6.158, allocations: 41.22 kB / 2.374 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/6.169, allocations: 8.015 MB / 2.382 GB, free: 117 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/6.17, allocations: 417.3 kB / 2.382 GB, free: 117 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004185/6.17, allocations: 314.7 kB / 2.382 GB, free: 117 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006629/6.171, allocations: 0.7512 MB / 2.383 GB, free: 116.2 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/6.171, allocations: 42.66 kB / 2.383 GB, free: 116.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=60): time 4.578e-06/6.171, allocations: 0 / 2.383 GB, free: 116.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=60): time 0.002022/6.173, allocations: 0.7263 MB / 2.384 GB, free: 116 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/6.173, allocations: 60.16 kB / 2.384 GB, free: 115.9 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/6.175, allocations: 1.678 MB / 2.386 GB, free: 115.7 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0002269/6.175, allocations: 29.42 kB / 2.386 GB, free: 115.7 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005942/6.176, allocations: 0.749 MB / 2.386 GB, free: 115.4 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/6.176, allocations: 206 kB / 2.387 GB, free: 115.3 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/6.176, allocations: 2.281 kB / 2.387 GB, free: 115.3 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001038/6.176, allocations: 349.7 kB / 2.387 GB, free: 114.9 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005048/6.177, allocations: 308.8 kB / 2.387 GB, free: 114.9 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007554/6.178, allocations: 0.7613 MB / 2.388 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009147/6.179, allocations: 461.5 kB / 2.388 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/6.179, allocations: 3.938 kB / 2.388 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00216/6.181, allocations: 1.125 MB / 2.39 GB, free: 114.3 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.00066/6.182, allocations: 3.149 MB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/6.182, allocations: 7.406 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.08e-05/6.182, allocations: 13.38 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/6.183, allocations: 257.6 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/6.183, allocations: 18.38 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/6.185, allocations: 200.9 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/6.185, allocations: 53.52 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/6.185, allocations: 3.938 kB / 2.393 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001545/6.187, allocations: 0.8623 MB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/6.187, allocations: 7.594 kB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/6.187, allocations: 17.31 kB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009471/6.188, allocations: 258.6 kB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/6.188, allocations: 18.44 kB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/6.19, allocations: 177.5 kB / 2.394 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/6.19, allocations: 55.64 kB / 2.394 GB, free: 110.8 MB / 0.9636 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.0003378/6.19, allocations: 129.6 kB / 2.395 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005028/6.191, allocations: 210.8 kB / 2.395 GB, free: 110.6 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/6.193, allocations: 0.8519 MB / 2.396 GB, free: 110.5 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/6.193, allocations: 10.08 kB / 2.396 GB, free: 110.5 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/6.193, allocations: 3.906 kB / 2.396 GB, free: 110.5 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009465/6.194, allocations: 0.6674 MB / 2.396 GB, free: 110.3 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/6.199, allocations: 2.414 MB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/6.199, allocations: 0 / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006267/6.2, allocations: 147.4 kB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/6.2, allocations: 3.625 kB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/6.2, allocations: 10.27 kB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/6.2, allocations: 8.766 kB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/6.2, allocations: 7.281 kB / 2.399 GB, free: 110 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001767/6.201, allocations: 1.291 MB / 2.4 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002296/6.204, allocations: 2.125 MB / 2.402 GB, free: 108.9 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009792/6.205, allocations: 432.3 kB / 2.403 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002817/6.205, allocations: 6.969 kB / 2.403 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/6.206, allocations: 150.2 kB / 2.403 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/6.207, allocations: 42.08 kB / 2.403 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/6.207, allocations: 33.92 kB / 2.403 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.002038/6.209, allocations: 1.235 MB / 2.404 GB, free: 108.5 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.006884/6.216, allocations: 1.545 MB / 2.406 GB, free: 108.3 MB / 0.9636 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.002628/6.218, allocations: 1.203 MB / 2.407 GB, free: 108 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002609/6.221, allocations: 1.326 MB / 2.408 GB, free: 108 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/6.221, allocations: 3.828 kB / 2.408 GB, free: 108 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0004988/6.221, allocations: 312.2 kB / 2.408 GB, free: 108 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007639/6.229, allocations: 1.23 MB / 2.41 GB, free: 108 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009771/6.239, allocations: 2.843 MB / 2.412 GB, free: 107.2 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002032/6.241, allocations: 1.827 MB / 2.414 GB, free: 106.4 MB / 0.9636 GB Notification: Performance of SimCode: time 2.154e-06/6.241, allocations: 0 / 2.414 GB, free: 106.4 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)