Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization",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/BuildingSystems 2.0.0-master/package.mo): time 0.7471/0.7471, allocations: 141.8 MB / 149.1 MB, free: 12.62 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 179.1 kB / 181.9 MB, free: 9.344 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.3 MB / 436 MB, free: 1.699 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001095, allocations: 103.6 kB / 0.507 GB, free: 17.73 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001902/0.001902, allocations: 277.7 kB / 0.5885 GB, free: 3.312 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4344/0.4363, allocations: 89.63 MB / 0.676 GB, free: 135.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.6156, allocations: 82.78 MB / 0.7568 GB, free: 82.16 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7282/1.344, allocations: 387.6 MB / 1.135 GB, free: 4.715 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.344, allocations: 104.8 kB / 1.135 GB, free: 4.664 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 4.068/5.412, allocations: 1.125 GB / 2.26 GB, free: 65.77 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/5.412, allocations: 10.66 kB / 2.26 GB, free: 65.77 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/5.414, allocations: 266.2 kB / 2.26 GB, free: 65.64 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00634/5.42, allocations: 1.663 MB / 2.262 GB, free: 65.25 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.989e-05/5.42, allocations: 35.91 kB / 2.262 GB, free: 65.25 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000644/5.421, allocations: 89.47 kB / 2.262 GB, free: 65.25 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002428/5.423, allocations: 0.9147 MB / 2.263 GB, free: 65.25 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/5.426, allocations: 0.939 MB / 2.264 GB, free: 65.17 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/5.426, allocations: 0 / 2.264 GB, free: 65.17 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/5.426, allocations: 2.219 kB / 2.264 GB, free: 65.17 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/5.426, allocations: 27.25 kB / 2.264 GB, free: 65.17 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01302/5.439, allocations: 6.015 MB / 2.27 GB, free: 62.55 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/5.44, allocations: 0.5692 MB / 2.27 GB, free: 62.51 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/5.441, allocations: 359.7 kB / 2.271 GB, free: 62.5 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004446/5.441, allocations: 0.5067 MB / 2.271 GB, free: 61.94 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/5.441, allocations: 51.42 kB / 2.271 GB, free: 61.9 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=58): time 3.407e-06/5.441, allocations: 0 / 2.271 GB, free: 61.9 MB / 0.7294 GB Notification: Performance of matching and sorting (n=58): time 0.002219/5.443, allocations: 0.8562 MB / 2.272 GB, free: 61.76 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/5.443, allocations: 59.22 kB / 2.272 GB, free: 61.7 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002196/5.446, allocations: 1.316 MB / 2.274 GB, free: 61.48 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002513/5.446, allocations: 31.64 kB / 2.274 GB, free: 61.45 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/5.446, allocations: 0.5909 MB / 2.274 GB, free: 61.14 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/5.447, allocations: 195.7 kB / 2.274 GB, free: 61.01 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/5.447, allocations: 0 / 2.274 GB, free: 61.01 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.000101/5.447, allocations: 347.6 kB / 2.275 GB, free: 60.7 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/5.447, allocations: 394.4 kB / 2.275 GB, free: 60.7 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008333/5.448, allocations: 0.7224 MB / 2.276 GB, free: 60.36 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009809/5.449, allocations: 0.493 MB / 2.276 GB, free: 60.35 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/5.449, allocations: 0 / 2.276 GB, free: 60.35 MB / 0.7294 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002324/5.452, allocations: 1.274 MB / 2.277 GB, free: 60.19 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002528/5.452, allocations: 0.9171 MB / 2.278 GB, free: 59.24 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/5.452, allocations: 3.938 kB / 2.278 GB, free: 59.24 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.95e-05/5.452, allocations: 11.34 kB / 2.278 GB, free: 59.24 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/5.453, allocations: 284.3 kB / 2.279 GB, free: 59.24 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/5.453, allocations: 12.83 kB / 2.279 GB, free: 59.24 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/5.456, allocations: 186.4 kB / 2.279 GB, free: 59.18 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/5.456, allocations: 60.42 kB / 2.279 GB, free: 59.18 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/5.456, allocations: 4.594 kB / 2.279 GB, free: 59.18 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/5.457, allocations: 1.009 MB / 2.28 GB, free: 59.15 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/5.457, allocations: 6.938 kB / 2.28 GB, free: 59.15 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/5.457, allocations: 7.469 kB / 2.28 GB, free: 59.15 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/5.459, allocations: 276.1 kB / 2.28 GB, free: 59.15 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/5.459, allocations: 9.031 kB / 2.28 GB, free: 59.15 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/5.461, allocations: 166.8 kB / 2.28 GB, free: 59.11 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/5.461, allocations: 61.92 kB / 2.28 GB, free: 59.11 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 146 * 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.0002639/5.461, allocations: 129.5 kB / 2.281 GB, free: 59 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002938/5.461, allocations: 182 kB / 2.281 GB, free: 58.91 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/5.464, allocations: 1.052 MB / 2.282 GB, free: 58.83 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/5.464, allocations: 11.97 kB / 2.282 GB, free: 58.83 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/5.464, allocations: 0 / 2.282 GB, free: 58.83 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/5.464, allocations: 3.609 kB / 2.282 GB, free: 58.83 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003709/5.468, allocations: 2.233 MB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/5.468, allocations: 0 / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/5.468, allocations: 137.8 kB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/5.468, allocations: 3.938 kB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/5.468, allocations: 18.52 kB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/5.468, allocations: 7.234 kB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/5.468, allocations: 7.406 kB / 2.284 GB, free: 58.45 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001382/5.47, allocations: 1.094 MB / 2.285 GB, free: 57.99 MB / 0.7294 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001764/5.471, allocations: 1.585 MB / 2.287 GB, free: 57.17 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007292/5.472, allocations: 361.1 kB / 2.287 GB, free: 56.97 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/5.472, allocations: 5.969 kB / 2.287 GB, free: 56.97 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/5.474, allocations: 105.1 kB / 2.287 GB, free: 56.96 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/5.474, allocations: 48.66 kB / 2.287 GB, free: 56.95 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/5.474, allocations: 23.12 kB / 2.287 GB, free: 56.95 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.001357/5.475, allocations: 0.9584 MB / 2.288 GB, free: 56.81 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.004599/5.48, allocations: 1.266 MB / 2.289 GB, free: 56.68 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 74 * 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.001669/5.481, allocations: 0.9805 MB / 2.29 GB, free: 56.43 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002669/5.484, allocations: 1.582 MB / 2.292 GB, free: 56.41 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/5.484, allocations: 1.781 kB / 2.292 GB, free: 56.41 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004897/5.485, allocations: 387 kB / 2.292 GB, free: 56.4 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004547/5.489, allocations: 0.8852 MB / 2.293 GB, free: 56.38 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005022/5.494, allocations: 2.261 MB / 2.295 GB, free: 55.7 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/5.495, allocations: 1.626 MB / 2.297 GB, free: 54.96 MB / 0.7294 GB Notification: Performance of SimCode: time 9.91e-07/5.495, allocations: 0 / 2.297 GB, free: 54.96 MB / 0.7294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe 2>&1)