Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.768/2.768, allocations: 284.8 MB / 292.1 MB, free: 10.74 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.001681/0.00168, allocations: 177.3 kB / 360.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.092/2.092, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001252/0.001252, allocations: 92.98 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2859/0.2872, allocations: 121.4 MB / 0.8502 GB, free: 3.93 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6675/0.9547, allocations: 115.2 MB / 0.9627 GB, free: 78.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.151/2.105, allocations: 431.4 MB / 1.384 GB, free: 134.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003971/2.106, allocations: 101.4 kB / 1.384 GB, free: 134.9 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 5.274/7.38, allocations: 0.9737 GB / 2.358 GB, free: 116.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/7.38, allocations: 8.312 kB / 2.358 GB, free: 116.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/7.382, allocations: 322.4 kB / 2.358 GB, free: 116.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/7.393, allocations: 2.433 MB / 2.361 GB, free: 116.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.001e-05/7.393, allocations: 49 kB / 2.361 GB, free: 116.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004719/7.393, allocations: 105.5 kB / 2.361 GB, free: 116.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003612/7.397, allocations: 0.9863 MB / 2.362 GB, free: 116.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004317/7.401, allocations: 1.309 MB / 2.363 GB, free: 116 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.714e-05/7.401, allocations: 7.75 kB / 2.363 GB, free: 116 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/7.401, allocations: 0 / 2.363 GB, free: 116 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.666e-05/7.402, allocations: 43.28 kB / 2.363 GB, free: 116 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01755/7.419, allocations: 8.009 MB / 2.371 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/7.42, allocations: 410.5 kB / 2.371 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007045/7.421, allocations: 321.4 kB / 2.371 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007429/7.422, allocations: 0.7545 MB / 2.372 GB, free: 111.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/7.422, allocations: 43.34 kB / 2.372 GB, free: 111.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 4.138e-06/7.422, allocations: 3.422 kB / 2.372 GB, free: 111.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.002952/7.425, allocations: 0.7303 MB / 2.373 GB, free: 111.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/7.425, allocations: 55.72 kB / 2.373 GB, free: 111 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00447/7.429, allocations: 1.677 MB / 2.375 GB, free: 110.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003754/7.43, allocations: 29.02 kB / 2.375 GB, free: 110.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009668/7.431, allocations: 0.7509 MB / 2.375 GB, free: 110.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003982/7.431, allocations: 207.9 kB / 2.376 GB, free: 110.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/7.431, allocations: 0 / 2.376 GB, free: 110.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001119/7.431, allocations: 350 kB / 2.376 GB, free: 110 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008909/7.432, allocations: 310.7 kB / 2.376 GB, free: 109.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/7.434, allocations: 0.7608 MB / 2.377 GB, free: 109.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/7.435, allocations: 457.7 kB / 2.377 GB, free: 109.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/7.435, allocations: 3.125 kB / 2.377 GB, free: 109.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003842/7.439, allocations: 1.126 MB / 2.379 GB, free: 109.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006754/7.44, allocations: 3.149 MB / 2.382 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/7.44, allocations: 7.344 kB / 2.382 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.773e-05/7.44, allocations: 16.62 kB / 2.382 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/7.442, allocations: 261.3 kB / 2.382 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.784e-05/7.442, allocations: 21.44 kB / 2.382 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003802/7.446, allocations: 201.7 kB / 2.382 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/7.447, allocations: 54.86 kB / 2.382 GB, free: 105.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/7.447, allocations: 3.5 kB / 2.382 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002737/7.449, allocations: 0.8575 MB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/7.449, allocations: 9.594 kB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/7.449, allocations: 20.73 kB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/7.452, allocations: 256.3 kB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/7.452, allocations: 18.72 kB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/7.455, allocations: 172.2 kB / 2.383 GB, free: 105.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002366/7.455, allocations: 50.34 kB / 2.383 GB, free: 105.8 MB / 0.948 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.0004161/7.456, allocations: 138.9 kB / 2.384 GB, free: 105.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006665/7.456, allocations: 204.3 kB / 2.384 GB, free: 105.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/7.459, allocations: 0.8569 MB / 2.385 GB, free: 105.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/7.46, allocations: 7.469 kB / 2.385 GB, free: 105.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/7.46, allocations: 0 / 2.385 GB, free: 105.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001705/7.461, allocations: 0.6669 MB / 2.385 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007831/7.469, allocations: 2.414 MB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/7.469, allocations: 0 / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/7.471, allocations: 151.5 kB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.505e-05/7.471, allocations: 3.781 kB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.418e-05/7.471, allocations: 10.73 kB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/7.471, allocations: 4.031 kB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/7.471, allocations: 0.5625 kB / 2.388 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003328/7.474, allocations: 1.297 MB / 2.389 GB, free: 104.6 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004532/7.479, allocations: 2.128 MB / 2.391 GB, free: 103.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/7.481, allocations: 434.4 kB / 2.392 GB, free: 103.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007943/7.481, allocations: 3.719 kB / 2.392 GB, free: 103.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/7.485, allocations: 157.8 kB / 2.392 GB, free: 103.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/7.485, allocations: 35.97 kB / 2.392 GB, free: 103.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/7.485, allocations: 33.12 kB / 2.392 GB, free: 103.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003191/7.488, allocations: 1.232 MB / 2.393 GB, free: 103.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0157/7.504, allocations: 1.547 MB / 2.395 GB, free: 103.3 MB / 0.948 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.00324/7.507, allocations: 1.188 MB / 2.396 GB, free: 103 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003692/7.511, allocations: 1.329 MB / 2.397 GB, free: 103 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/7.511, allocations: 0 / 2.397 GB, free: 103 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00076/7.512, allocations: 309 kB / 2.397 GB, free: 103 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01244/7.524, allocations: 1.239 MB / 2.398 GB, free: 103 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/7.535, allocations: 2.842 MB / 2.401 GB, free: 102.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002763/7.537, allocations: 1.816 MB / 2.403 GB, free: 101.4 MB / 0.948 GB Notification: Performance of SimCode: time 1.603e-06/7.537, allocations: 0 / 2.403 GB, free: 101.4 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)