Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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 9.1.1-maint.9.1.x/package.mo): time 2.058/2.058, allocations: 387.2 MB / 394.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 180.6 kB / 487 MB, free: 5.414 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 221.3 MB / 0.7819 GB, free: 1.438 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000953/0.0009531, allocations: 100.5 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6185/0.6195, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.8888, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.012/1.901, allocations: 398.7 MB / 1.595 GB, free: 8.191 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003843/1.902, allocations: 91.64 kB / 1.595 GB, free: 8.145 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.535/3.437, allocations: 437 MB / 2.021 GB, free: 119.4 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/3.437, allocations: 9 kB / 2.021 GB, free: 119.4 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/3.437, allocations: 154.5 kB / 2.022 GB, free: 119.2 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/3.439, allocations: 0.8603 MB / 2.022 GB, free: 118.3 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/3.439, allocations: 20 kB / 2.022 GB, free: 118.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/3.439, allocations: 80 kB / 2.023 GB, free: 118.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006432/3.44, allocations: 394.5 kB / 2.023 GB, free: 117.8 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007189/3.44, allocations: 0.5159 MB / 2.023 GB, free: 117.3 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/3.441, allocations: 7.984 kB / 2.023 GB, free: 117.3 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/3.441, allocations: 4 kB / 2.023 GB, free: 117.3 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/3.441, allocations: 12 kB / 2.023 GB, free: 117.2 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/3.444, allocations: 2.932 MB / 2.026 GB, free: 114.2 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/3.445, allocations: 319.4 kB / 2.027 GB, free: 113.9 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/3.445, allocations: 141.4 kB / 2.027 GB, free: 113.7 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002948/3.445, allocations: 344.6 kB / 2.027 GB, free: 113.3 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/3.445, allocations: 34.84 kB / 2.027 GB, free: 113.3 MB / 1.135 GB Notification: Performance of pre-optimization done (n=33): time 3.106e-06/3.445, allocations: 3.984 kB / 2.027 GB, free: 113.3 MB / 1.135 GB Notification: Performance of matching and sorting (n=33): time 0.001337/3.447, allocations: 0.4909 MB / 2.028 GB, free: 112.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/3.447, allocations: 59.41 kB / 2.028 GB, free: 112.7 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/3.447, allocations: 0.6362 MB / 2.028 GB, free: 112 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/3.447, allocations: 41.62 kB / 2.028 GB, free: 112 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/3.448, allocations: 415.7 kB / 2.029 GB, free: 111.6 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/3.448, allocations: 106.4 kB / 2.029 GB, free: 111.5 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/3.448, allocations: 0 / 2.029 GB, free: 111.5 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.127e-05/3.448, allocations: 326 kB / 2.029 GB, free: 111.1 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/3.448, allocations: 157.3 kB / 2.029 GB, free: 111 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/3.449, allocations: 1.412 MB / 2.031 GB, free: 109.2 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008481/3.45, allocations: 400 kB / 2.031 GB, free: 108.8 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/3.45, allocations: 3.906 kB / 2.031 GB, free: 108.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001378/3.451, allocations: 0.6555 MB / 2.032 GB, free: 108.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/3.451, allocations: 0.8134 MB / 2.032 GB, free: 107.2 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/3.452, allocations: 4 kB / 2.032 GB, free: 107.2 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/3.452, allocations: 7.938 kB / 2.033 GB, free: 107.2 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/3.453, allocations: 215.6 kB / 2.033 GB, free: 107 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/3.454, allocations: 2.993 MB / 2.036 GB, free: 103.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/3.457, allocations: 0.7654 MB / 2.036 GB, free: 103.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.537e-05/3.458, allocations: 23.98 kB / 2.036 GB, free: 103.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/3.458, allocations: 4 kB / 2.036 GB, free: 103.1 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001133/3.459, allocations: 0.4986 MB / 2.037 GB, free: 102.6 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/3.459, allocations: 0 / 2.037 GB, free: 102.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.515e-06/3.459, allocations: 4 kB / 2.037 GB, free: 102.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006577/3.459, allocations: 159.8 kB / 2.037 GB, free: 102.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/3.459, allocations: 11.91 kB / 2.037 GB, free: 102.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/3.462, allocations: 0.7501 MB / 2.038 GB, free: 101.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/3.463, allocations: 31.98 kB / 2.038 GB, free: 101.7 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002274/3.463, allocations: 129.6 kB / 2.038 GB, free: 101.5 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/3.463, allocations: 90.78 kB / 2.038 GB, free: 101.4 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/3.464, allocations: 0.5748 MB / 2.039 GB, free: 100.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/3.464, allocations: 8 kB / 2.039 GB, free: 100.9 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/3.464, allocations: 0 / 2.039 GB, free: 100.9 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/3.464, allocations: 3.984 kB / 2.039 GB, free: 100.9 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/3.467, allocations: 1.239 MB / 2.04 GB, free: 99.56 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/3.467, allocations: 0 / 2.04 GB, free: 99.56 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005538/3.467, allocations: 115.8 kB / 2.04 GB, free: 99.45 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/3.467, allocations: 128 / 2.04 GB, free: 99.45 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/3.467, allocations: 19.98 kB / 2.04 GB, free: 99.43 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009274/3.468, allocations: 2.954 MB / 2.043 GB, free: 96.36 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/3.468, allocations: 12.03 kB / 2.043 GB, free: 96.34 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001045/3.469, allocations: 0.6586 MB / 2.043 GB, free: 95.63 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001247/3.471, allocations: 1.088 MB / 2.045 GB, free: 94.49 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/3.471, allocations: 211.8 kB / 2.045 GB, free: 94.26 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/3.471, allocations: 4 kB / 2.045 GB, free: 94.26 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/3.472, allocations: 72.02 kB / 2.045 GB, free: 94.19 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.317e-05/3.472, allocations: 19.97 kB / 2.045 GB, free: 94.17 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.445e-05/3.472, allocations: 19.97 kB / 2.045 GB, free: 94.15 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0005754/3.472, allocations: 488.6 kB / 2.045 GB, free: 93.66 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.003944/3.476, allocations: 0.6982 MB / 2.046 GB, free: 92.96 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001244/3.478, allocations: 0.5133 MB / 2.047 GB, free: 92.44 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002804/3.48, allocations: 0.7673 MB / 2.047 GB, free: 91.68 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/3.48, allocations: 0 / 2.047 GB, free: 91.68 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0005187/3.481, allocations: 220.7 kB / 2.047 GB, free: 91.46 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/3.483, allocations: 385.2 kB / 2.048 GB, free: 91.09 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/3.486, allocations: 1.074 MB / 2.049 GB, free: 89.97 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005621/3.486, allocations: 1.139 MB / 2.05 GB, free: 88.8 MB / 1.135 GB Notification: Performance of SimCode: time 4.51e-07/3.486, allocations: 0 / 2.05 GB, free: 88.8 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)