Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.599/1.599, allocations: 289.8 MB / 297 MB, free: 6.676 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.001313/0.001313, allocations: 185.3 kB / 366.3 MB, free: 1.977 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.893/1.893, allocations: 205.1 MB / 0.6256 GB, free: 5.836 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.001294/0.001294, allocations: 89.34 kB / 0.7395 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3571/0.3585, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7701/1.129, allocations: 116.3 MB / 0.9726 GB, free: 68.11 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9944/2.123, allocations: 401.5 MB / 1.365 GB, free: 86.67 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/2.123, allocations: 95.19 kB / 1.365 GB, free: 86.62 MB / 0.823 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.37/3.493, allocations: 428.4 MB / 1.783 GB, free: 174.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/3.493, allocations: 12 kB / 1.783 GB, free: 174.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003054/3.493, allocations: 146.5 kB / 1.783 GB, free: 174.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/3.495, allocations: 0.84 MB / 1.784 GB, free: 173.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/3.495, allocations: 24 kB / 1.784 GB, free: 173.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/3.495, allocations: 83.94 kB / 1.784 GB, free: 173.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000663/3.496, allocations: 402.4 kB / 1.785 GB, free: 173 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006896/3.496, allocations: 0.5234 MB / 1.785 GB, free: 172.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/3.496, allocations: 0 / 1.785 GB, free: 172.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/3.496, allocations: 0 / 1.785 GB, free: 172.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/3.496, allocations: 20 kB / 1.785 GB, free: 172.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003649/3.5, allocations: 2.919 MB / 1.788 GB, free: 169.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/3.501, allocations: 315.3 kB / 1.788 GB, free: 169 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/3.501, allocations: 133.4 kB / 1.788 GB, free: 168.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002863/3.501, allocations: 348.3 kB / 1.789 GB, free: 168.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/3.501, allocations: 42.75 kB / 1.789 GB, free: 168.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 2.695e-06/3.501, allocations: 0 / 1.789 GB, free: 168.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.001457/3.503, allocations: 498.7 kB / 1.789 GB, free: 168 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/3.503, allocations: 59.41 kB / 1.789 GB, free: 167.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007272/3.503, allocations: 0.6274 MB / 1.79 GB, free: 167.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001317/3.504, allocations: 33.7 kB / 1.79 GB, free: 167.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003299/3.504, allocations: 413.6 kB / 1.79 GB, free: 166.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.061e-05/3.504, allocations: 106.4 kB / 1.79 GB, free: 166.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.727e-05/3.504, allocations: 0 / 1.79 GB, free: 166.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.86e-05/3.504, allocations: 330 kB / 1.791 GB, free: 166.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/3.504, allocations: 157.2 kB / 1.791 GB, free: 166.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/3.505, allocations: 1.415 MB / 1.792 GB, free: 164.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00087/3.506, allocations: 395.9 kB / 1.793 GB, free: 164 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/3.506, allocations: 4 kB / 1.793 GB, free: 164 MB / 0.948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001459/3.508, allocations: 0.6671 MB / 1.793 GB, free: 163.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/3.508, allocations: 0.7979 MB / 1.794 GB, free: 162.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/3.508, allocations: 0 / 1.794 GB, free: 162.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/3.508, allocations: 7.906 kB / 1.794 GB, free: 162.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/3.509, allocations: 211.6 kB / 1.794 GB, free: 162.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/3.511, allocations: 3.001 MB / 1.797 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003662/3.514, allocations: 0.7615 MB / 1.798 GB, free: 158.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/3.515, allocations: 27.98 kB / 1.798 GB, free: 158.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/3.515, allocations: 4 kB / 1.798 GB, free: 158.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001247/3.516, allocations: 0.4947 MB / 1.799 GB, free: 157.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/3.516, allocations: 4 kB / 1.799 GB, free: 157.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/3.516, allocations: 7.938 kB / 1.799 GB, free: 157.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/3.517, allocations: 167.7 kB / 1.799 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/3.517, allocations: 4 kB / 1.799 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/3.52, allocations: 0.7616 MB / 1.799 GB, free: 156.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/3.52, allocations: 23.98 kB / 1.799 GB, free: 156.9 MB / 0.948 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.0002931/3.521, allocations: 129.9 kB / 1.8 GB, free: 156.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002458/3.521, allocations: 86.88 kB / 1.8 GB, free: 156.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/3.522, allocations: 0.5655 MB / 1.8 GB, free: 156.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/3.522, allocations: 4 kB / 1.8 GB, free: 156.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/3.522, allocations: 3.906 kB / 1.8 GB, free: 156.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/3.522, allocations: 3.984 kB / 1.8 GB, free: 156.1 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/3.525, allocations: 1.231 MB / 1.801 GB, free: 154.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/3.525, allocations: 7.938 kB / 1.801 GB, free: 154.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/3.525, allocations: 119.8 kB / 1.802 GB, free: 154.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/3.525, allocations: 8 kB / 1.802 GB, free: 154.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/3.525, allocations: 8.125 kB / 1.802 GB, free: 154.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008826/3.526, allocations: 2.957 MB / 1.804 GB, free: 151.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/3.526, allocations: 8.312 kB / 1.804 GB, free: 151.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001166/3.527, allocations: 0.6654 MB / 1.805 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001202/3.529, allocations: 1.084 MB / 1.806 GB, free: 149.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003944/3.529, allocations: 207.8 kB / 1.806 GB, free: 149.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/3.529, allocations: 4 kB / 1.806 GB, free: 149.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006001/3.53, allocations: 71.77 kB / 1.806 GB, free: 149.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/3.53, allocations: 27.83 kB / 1.806 GB, free: 149.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/3.53, allocations: 11.98 kB / 1.807 GB, free: 149.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005687/3.53, allocations: 484 kB / 1.807 GB, free: 148.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003619/3.534, allocations: 0.6904 MB / 1.808 GB, free: 148.2 MB / 0.948 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.001119/3.535, allocations: 0.5064 MB / 1.808 GB, free: 147.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002638/3.538, allocations: 0.7893 MB / 1.809 GB, free: 146.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/3.538, allocations: 0 / 1.809 GB, free: 146.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005026/3.538, allocations: 221.1 kB / 1.809 GB, free: 146.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/3.54, allocations: 386.1 kB / 1.809 GB, free: 146.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/3.543, allocations: 1.059 MB / 1.811 GB, free: 145.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000584/3.543, allocations: 1.128 MB / 1.812 GB, free: 144.1 MB / 0.948 GB Notification: Performance of SimCode: time 3.91e-07/3.543, allocations: 0 / 1.812 GB, free: 144.1 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)