Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.378/1.378, allocations: 285.5 MB / 292.8 MB, free: 9.816 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.0009861/0.000986, allocations: 177.3 kB / 361.1 MB, free: 400 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.181/1.181, allocations: 205.2 MB / 0.6195 GB, free: 2.883 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008211/0.0008212, allocations: 83.39 kB / 0.7326 GB, free: 1.055 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4489/0.4497, allocations: 121.4 MB / 0.8512 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.6351, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7284/1.364, allocations: 400.5 MB / 1.355 GB, free: 2.883 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/1.364, allocations: 98.97 kB / 1.355 GB, free: 2.832 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.187/2.551, allocations: 428.4 MB / 1.773 GB, free: 66.45 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/2.551, allocations: 8 kB / 1.773 GB, free: 66.45 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005453/2.551, allocations: 154.5 kB / 1.773 GB, free: 66.29 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/2.553, allocations: 0.8446 MB / 1.774 GB, free: 65.41 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/2.553, allocations: 16 kB / 1.774 GB, free: 65.39 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/2.553, allocations: 83.91 kB / 1.774 GB, free: 65.31 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000641/2.554, allocations: 398.5 kB / 1.775 GB, free: 64.92 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/2.555, allocations: 0.5199 MB / 1.775 GB, free: 64.38 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/2.555, allocations: 0 / 1.775 GB, free: 64.38 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/2.555, allocations: 4 kB / 1.775 GB, free: 64.37 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/2.555, allocations: 12 kB / 1.775 GB, free: 64.36 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003653/2.558, allocations: 2.936 MB / 1.778 GB, free: 61.29 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004484/2.559, allocations: 310.9 kB / 1.778 GB, free: 60.97 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/2.559, allocations: 137.4 kB / 1.779 GB, free: 60.84 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/2.559, allocations: 352.7 kB / 1.779 GB, free: 60.42 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/2.559, allocations: 34.84 kB / 1.779 GB, free: 60.38 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/2.559, allocations: 7.938 kB / 1.779 GB, free: 60.37 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.001262/2.561, allocations: 494.7 kB / 1.779 GB, free: 59.88 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.441e-05/2.561, allocations: 55.41 kB / 1.78 GB, free: 59.81 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006262/2.561, allocations: 0.6235 MB / 1.78 GB, free: 59.17 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001295/2.561, allocations: 33.7 kB / 1.78 GB, free: 59.13 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/2.562, allocations: 411.9 kB / 1.781 GB, free: 58.71 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 6.677e-05/2.562, allocations: 110.3 kB / 1.781 GB, free: 58.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/2.562, allocations: 0 / 1.781 GB, free: 58.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.733e-05/2.562, allocations: 326 kB / 1.781 GB, free: 58.28 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/2.562, allocations: 157.3 kB / 1.781 GB, free: 58.12 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/2.563, allocations: 1.415 MB / 1.782 GB, free: 56.31 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008572/2.564, allocations: 391.9 kB / 1.783 GB, free: 55.93 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/2.564, allocations: 7.906 kB / 1.783 GB, free: 55.92 MB / 0.948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001387/2.565, allocations: 0.6632 MB / 1.784 GB, free: 55.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/2.566, allocations: 0.8114 MB / 1.784 GB, free: 54.38 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/2.566, allocations: 4 kB / 1.784 GB, free: 54.38 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/2.566, allocations: 4 kB / 1.784 GB, free: 54.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/2.567, allocations: 211.6 kB / 1.785 GB, free: 54.17 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/2.568, allocations: 3.004 MB / 1.787 GB, free: 51.05 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00294/2.571, allocations: 0.7656 MB / 1.788 GB, free: 50.28 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.195e-05/2.571, allocations: 31.98 kB / 1.788 GB, free: 50.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/2.571, allocations: 4 kB / 1.788 GB, free: 50.25 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001047/2.572, allocations: 498.5 kB / 1.789 GB, free: 49.76 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/2.572, allocations: 0 / 1.789 GB, free: 49.76 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.422e-06/2.572, allocations: 4 kB / 1.789 GB, free: 49.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006453/2.573, allocations: 168 kB / 1.789 GB, free: 49.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/2.573, allocations: 11.84 kB / 1.789 GB, free: 49.58 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/2.576, allocations: 0.7499 MB / 1.79 GB, free: 48.82 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/2.576, allocations: 27.98 kB / 1.79 GB, free: 48.8 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.0002149/2.576, allocations: 139.4 kB / 1.79 GB, free: 48.66 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/2.576, allocations: 86.78 kB / 1.79 GB, free: 48.57 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/2.578, allocations: 0.5661 MB / 1.79 GB, free: 48 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/2.578, allocations: 8 kB / 1.79 GB, free: 47.99 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/2.578, allocations: 0 / 1.79 GB, free: 47.99 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/2.578, allocations: 7.984 kB / 1.79 GB, free: 47.98 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/2.58, allocations: 1.231 MB / 1.792 GB, free: 46.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/2.58, allocations: 4.031 kB / 1.792 GB, free: 46.69 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005219/2.58, allocations: 115.8 kB / 1.792 GB, free: 46.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/2.58, allocations: 4 kB / 1.792 GB, free: 46.57 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/2.58, allocations: 8 kB / 1.792 GB, free: 46.56 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007959/2.581, allocations: 2.961 MB / 1.795 GB, free: 43.48 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/2.581, allocations: 4 kB / 1.795 GB, free: 43.48 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001017/2.582, allocations: 0.6656 MB / 1.795 GB, free: 42.76 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001121/2.583, allocations: 1.077 MB / 1.796 GB, free: 41.63 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/2.584, allocations: 211.8 kB / 1.797 GB, free: 41.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/2.584, allocations: 0 / 1.797 GB, free: 41.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005546/2.584, allocations: 67.77 kB / 1.797 GB, free: 41.34 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/2.584, allocations: 31.83 kB / 1.797 GB, free: 41.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/2.585, allocations: 19.98 kB / 1.797 GB, free: 41.29 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0004478/2.585, allocations: 472.1 kB / 1.797 GB, free: 40.81 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003006/2.588, allocations: 0.6982 MB / 1.798 GB, free: 40.11 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.0008519/2.589, allocations: 0.5082 MB / 1.798 GB, free: 39.61 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002166/2.591, allocations: 0.7865 MB / 1.799 GB, free: 38.82 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/2.591, allocations: 0 / 1.799 GB, free: 38.82 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004743/2.592, allocations: 211.8 kB / 1.799 GB, free: 38.61 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/2.593, allocations: 386.1 kB / 1.8 GB, free: 38.24 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/2.595, allocations: 1.063 MB / 1.801 GB, free: 37.12 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005106/2.596, allocations: 1.128 MB / 1.802 GB, free: 35.97 MB / 0.948 GB Notification: Performance of SimCode: time 4.71e-07/2.596, allocations: 4 kB / 1.802 GB, free: 35.96 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)