Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",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.68/1.68, allocations: 289.8 MB / 297.1 MB, free: 6.738 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.001399/0.0014, allocations: 181.3 kB / 366.3 MB, free: 2.008 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.654/1.654, allocations: 205.2 MB / 0.6256 GB, free: 5.84 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.000975/0.000975, allocations: 96.62 kB / 0.7396 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3029/0.3039, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7526/1.057, allocations: 116.3 MB / 0.9727 GB, free: 68.16 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8764/1.933, allocations: 396.9 MB / 1.36 GB, free: 91.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/1.933, allocations: 95.56 kB / 1.36 GB, free: 91.09 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.9846/2.918, allocations: 236.1 MB / 1.591 GB, free: 272.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/2.918, allocations: 10.22 kB / 1.591 GB, free: 272.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/2.918, allocations: 83.72 kB / 1.591 GB, free: 272.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008583/2.919, allocations: 0.5168 MB / 1.592 GB, free: 272.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/2.919, allocations: 14.91 kB / 1.592 GB, free: 272.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/2.919, allocations: 29.88 kB / 1.592 GB, free: 272.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005755/2.92, allocations: 361.1 kB / 1.592 GB, free: 272.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006243/2.92, allocations: 0.5005 MB / 1.592 GB, free: 272.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/2.92, allocations: 7.625 kB / 1.592 GB, free: 272.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/2.92, allocations: 0 / 1.592 GB, free: 272.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/2.92, allocations: 10.75 kB / 1.592 GB, free: 272.1 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/2.923, allocations: 3.11 MB / 1.595 GB, free: 270 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/2.923, allocations: 267.6 kB / 1.596 GB, free: 269.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/2.924, allocations: 184.2 kB / 1.596 GB, free: 269.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002636/2.924, allocations: 348.4 kB / 1.596 GB, free: 269.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/2.924, allocations: 39.59 kB / 1.596 GB, free: 269.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=38): time 1.924e-06/2.924, allocations: 0 / 1.596 GB, free: 269.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=38): time 0.002088/2.926, allocations: 0.7086 MB / 1.597 GB, free: 269.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.817e-05/2.926, allocations: 55.34 kB / 1.597 GB, free: 269.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003911/2.926, allocations: 430.1 kB / 1.597 GB, free: 269.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/2.926, allocations: 25.7 kB / 1.597 GB, free: 269.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/2.927, allocations: 259.2 kB / 1.598 GB, free: 269.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 9.017e-05/2.927, allocations: 126.1 kB / 1.598 GB, free: 269 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.577e-05/2.927, allocations: 0 / 1.598 GB, free: 269 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.496e-05/2.927, allocations: 372.8 kB / 1.598 GB, free: 268.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/2.927, allocations: 147.9 kB / 1.598 GB, free: 268.7 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/2.927, allocations: 328 kB / 1.599 GB, free: 268.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/2.929, allocations: 470 kB / 1.599 GB, free: 268.5 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/2.929, allocations: 6.781 kB / 1.599 GB, free: 268.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002103/2.931, allocations: 0.8327 MB / 1.6 GB, free: 268.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002977/2.931, allocations: 1.741 MB / 1.602 GB, free: 266.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/2.931, allocations: 10.73 kB / 1.602 GB, free: 266.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/2.932, allocations: 114.7 kB / 1.602 GB, free: 266.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005792/2.932, allocations: 142.8 kB / 1.602 GB, free: 266.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009502/2.933, allocations: 0.7257 MB / 1.603 GB, free: 266.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007161/2.934, allocations: 94.77 kB / 1.603 GB, free: 266.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.927e-05/2.934, allocations: 30.88 kB / 1.603 GB, free: 266.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.755e-06/2.934, allocations: 6.75 kB / 1.603 GB, free: 266.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00183/2.936, allocations: 0.712 MB / 1.603 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/2.936, allocations: 3.688 kB / 1.603 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/2.936, allocations: 10.69 kB / 1.603 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000613/2.937, allocations: 156.6 kB / 1.604 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/2.937, allocations: 13.09 kB / 1.604 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006987/2.937, allocations: 82.86 kB / 1.604 GB, free: 266 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.775e-05/2.937, allocations: 31.69 kB / 1.604 GB, free: 266 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001553/2.938, allocations: 117.5 kB / 1.604 GB, free: 265.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/2.938, allocations: 59.38 kB / 1.604 GB, free: 265.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/2.94, allocations: 0.8214 MB / 1.605 GB, free: 265.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/2.94, allocations: 7.719 kB / 1.605 GB, free: 265.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/2.94, allocations: 0 / 1.605 GB, free: 265.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/2.94, allocations: 3.906 kB / 1.605 GB, free: 265.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/2.943, allocations: 1.489 MB / 1.606 GB, free: 265.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/2.943, allocations: 3.094 kB / 1.606 GB, free: 265.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/2.944, allocations: 97.53 kB / 1.606 GB, free: 265.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003533/2.944, allocations: 120.1 kB / 1.606 GB, free: 265.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/2.944, allocations: 17.59 kB / 1.606 GB, free: 265.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008912/2.945, allocations: 0.7121 MB / 1.607 GB, free: 265 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/2.945, allocations: 0 / 1.607 GB, free: 265 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001983/2.947, allocations: 0.9131 MB / 1.608 GB, free: 264.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002095/2.949, allocations: 1.312 MB / 1.609 GB, free: 264.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/2.949, allocations: 186.5 kB / 1.609 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/2.949, allocations: 0 / 1.609 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/2.95, allocations: 59.75 kB / 1.609 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/2.95, allocations: 27.05 kB / 1.609 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/2.95, allocations: 19.81 kB / 1.61 GB, free: 264 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0003326/2.95, allocations: 320.2 kB / 1.61 GB, free: 263.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002708/2.953, allocations: 463.3 kB / 1.61 GB, free: 263.8 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007723/2.954, allocations: 424.8 kB / 1.611 GB, free: 263.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001478/2.955, allocations: 0.7293 MB / 1.611 GB, free: 263.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/2.955, allocations: 0 / 1.611 GB, free: 263.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004546/2.956, allocations: 239.6 kB / 1.612 GB, free: 263.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/2.957, allocations: 231.4 kB / 1.612 GB, free: 263.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/2.959, allocations: 0.7706 MB / 1.613 GB, free: 263.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004704/2.959, allocations: 0.9901 MB / 1.614 GB, free: 262.7 MB / 0.948 GB Notification: Performance of SimCode: time 3.71e-07/2.959, allocations: 3.844 kB / 1.614 GB, free: 262.7 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)