Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.269/1.269, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009338/0.0009338, allocations: 177.3 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.1 MB / 0.5667 GB, free: 15.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008206/0.0008209, allocations: 93.28 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3679/0.3688, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.5442, allocations: 106.3 MB / 0.8846 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.059/1.603, allocations: 393.6 MB / 1.269 GB, free: 322.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/1.603, allocations: 97.27 kB / 1.269 GB, free: 322.5 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.9391/2.542, allocations: 351.7 MB / 1.613 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/2.542, allocations: 6.969 kB / 1.613 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/2.543, allocations: 122.5 kB / 1.613 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/2.544, allocations: 0.6799 MB / 1.613 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/2.544, allocations: 18.25 kB / 1.613 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/2.544, allocations: 56.5 kB / 1.613 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005476/2.544, allocations: 330.9 kB / 1.614 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/2.545, allocations: 455.4 kB / 1.614 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/2.545, allocations: 2.938 kB / 1.614 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/2.545, allocations: 0 / 1.614 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/2.545, allocations: 12.59 kB / 1.614 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/2.548, allocations: 2.378 MB / 1.617 GB, free: 206 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/2.548, allocations: 252.2 kB / 1.617 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/2.548, allocations: 116.2 kB / 1.617 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002204/2.548, allocations: 342.6 kB / 1.617 GB, free: 205.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/2.549, allocations: 42.97 kB / 1.617 GB, free: 205.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/2.549, allocations: 0 / 1.617 GB, free: 205.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29): time 0.001071/2.55, allocations: 432.9 kB / 1.618 GB, free: 205.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.614e-05/2.55, allocations: 55.38 kB / 1.618 GB, free: 205.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004704/2.55, allocations: 0.5332 MB / 1.618 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/2.55, allocations: 32.83 kB / 1.618 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/2.55, allocations: 324 kB / 1.619 GB, free: 205.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/2.55, allocations: 99.28 kB / 1.619 GB, free: 205 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/2.55, allocations: 0 / 1.619 GB, free: 205 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.521e-05/2.55, allocations: 379.8 kB / 1.619 GB, free: 204.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/2.551, allocations: 122 kB / 1.619 GB, free: 204.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005264/2.551, allocations: 0.7643 MB / 1.62 GB, free: 204.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007298/2.552, allocations: 315.3 kB / 1.62 GB, free: 204.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/2.552, allocations: 0 / 1.62 GB, free: 204.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001141/2.553, allocations: 0.5682 MB / 1.621 GB, free: 204 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001445/2.553, allocations: 0.8014 MB / 1.622 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/2.553, allocations: 7.359 kB / 1.622 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/2.553, allocations: 7.234 kB / 1.622 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/2.554, allocations: 176 kB / 1.622 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009375/2.555, allocations: 2.396 MB / 1.624 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/2.557, allocations: 321.9 kB / 1.624 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.669e-05/2.557, allocations: 24.48 kB / 1.624 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/2.557, allocations: 6.844 kB / 1.624 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001003/2.558, allocations: 435.2 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/2.558, allocations: 3.25 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/2.558, allocations: 7.188 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005502/2.559, allocations: 134.7 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/2.559, allocations: 3.75 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/2.56, allocations: 325.4 kB / 1.625 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/2.56, allocations: 22.22 kB / 1.625 GB, free: 200.8 MB / 0.8698 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001434/2.56, allocations: 129.6 kB / 1.625 GB, free: 200.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-05/2.56, allocations: 76.94 kB / 1.626 GB, free: 200.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/2.562, allocations: 0.5123 MB / 1.626 GB, free: 200.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/2.562, allocations: 3.312 kB / 1.626 GB, free: 200.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/2.562, allocations: 0 / 1.626 GB, free: 200.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/2.562, allocations: 3.328 kB / 1.626 GB, free: 200.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/2.563, allocations: 1.097 MB / 1.627 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/2.563, allocations: 0 / 1.627 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/2.564, allocations: 105.2 kB / 1.627 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/2.564, allocations: 10.7 kB / 1.627 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/2.564, allocations: 10.91 kB / 1.627 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006112/2.565, allocations: 2.365 MB / 1.63 GB, free: 198 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/2.565, allocations: 3.25 kB / 1.63 GB, free: 198 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009061/2.565, allocations: 0.6102 MB / 1.63 GB, free: 197.7 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009818/2.566, allocations: 1.024 MB / 1.631 GB, free: 197 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/2.567, allocations: 195 kB / 1.631 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/2.567, allocations: 2.719 kB / 1.631 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/2.567, allocations: 62.53 kB / 1.631 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/2.567, allocations: 28.41 kB / 1.631 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/2.567, allocations: 7.469 kB / 1.631 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0003533/2.568, allocations: 416.6 kB / 1.632 GB, free: 196.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002761/2.57, allocations: 0.5777 MB / 1.632 GB, free: 196.8 MB / 0.8698 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007437/2.571, allocations: 476.3 kB / 1.633 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001776/2.573, allocations: 0.6353 MB / 1.633 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/2.573, allocations: 0 / 1.633 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003982/2.573, allocations: 181.1 kB / 1.634 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/2.575, allocations: 334.8 kB / 1.634 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/2.577, allocations: 0.8924 MB / 1.635 GB, free: 196.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004633/2.577, allocations: 1.066 MB / 1.636 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.142e-06/2.577, allocations: 0 / 1.636 GB, free: 195.6 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)