Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.219/1.219, allocations: 249.4 MB / 256.7 MB, free: 7.023 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.001007/0.001007, allocations: 185.2 kB / 316 MB, free: 3.57 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.197/1.197, allocations: 205.2 MB / 0.5667 GB, free: 15.6 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.0008289/0.0008289, allocations: 94.2 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3628/0.3637, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.5335, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.053/1.587, allocations: 389.4 MB / 1.265 GB, free: 281.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/1.587, allocations: 90.36 kB / 1.265 GB, free: 281.7 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.4364/2.024, allocations: 229.8 MB / 1.489 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/2.024, allocations: 8 kB / 1.489 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/2.024, allocations: 82.97 kB / 1.49 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/2.025, allocations: 0.5102 MB / 1.49 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/2.025, allocations: 12 kB / 1.49 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/2.025, allocations: 35.94 kB / 1.49 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005176/2.025, allocations: 353.9 kB / 1.49 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/2.026, allocations: 0.506 MB / 1.491 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/2.026, allocations: 0 / 1.491 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/2.026, allocations: 7.906 kB / 1.491 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/2.026, allocations: 12 kB / 1.491 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/2.028, allocations: 3.093 MB / 1.494 GB, free: 101.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/2.028, allocations: 266.8 kB / 1.494 GB, free: 101 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/2.029, allocations: 172.8 kB / 1.494 GB, free: 100.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002664/2.029, allocations: 360 kB / 1.495 GB, free: 100.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/2.029, allocations: 34.59 kB / 1.495 GB, free: 100.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=38): time 1.733e-06/2.029, allocations: 0 / 1.495 GB, free: 100.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=38): time 0.002032/2.031, allocations: 0.7044 MB / 1.495 GB, free: 99.67 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/2.031, allocations: 55.41 kB / 1.495 GB, free: 99.61 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003674/2.031, allocations: 438.4 kB / 1.496 GB, free: 99.17 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/2.031, allocations: 25.7 kB / 1.496 GB, free: 99.14 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.167e-05/2.032, allocations: 260.2 kB / 1.496 GB, free: 98.88 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.95e-05/2.032, allocations: 122.2 kB / 1.496 GB, free: 98.76 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/2.032, allocations: 0 / 1.496 GB, free: 98.76 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.318e-05/2.032, allocations: 374.7 kB / 1.497 GB, free: 98.38 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/2.032, allocations: 149.3 kB / 1.497 GB, free: 98.24 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/2.032, allocations: 323 kB / 1.497 GB, free: 97.84 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/2.034, allocations: 488.2 kB / 1.498 GB, free: 97.37 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/2.034, allocations: 0 / 1.498 GB, free: 97.37 MB / 0.8698 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001842/2.035, allocations: 0.8271 MB / 1.498 GB, free: 96.53 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002462/2.036, allocations: 1.744 MB / 1.5 GB, free: 94.65 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/2.036, allocations: 7.938 kB / 1.5 GB, free: 94.64 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/2.036, allocations: 104.8 kB / 1.5 GB, free: 94.54 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005191/2.037, allocations: 139.8 kB / 1.5 GB, free: 94.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008291/2.037, allocations: 0.7318 MB / 1.501 GB, free: 93.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/2.038, allocations: 95.38 kB / 1.501 GB, free: 93.55 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/2.038, allocations: 36.05 kB / 1.501 GB, free: 93.52 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.54e-06/2.038, allocations: 4 kB / 1.501 GB, free: 93.51 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001698/2.04, allocations: 0.7076 MB / 1.502 GB, free: 92.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/2.04, allocations: 4 kB / 1.502 GB, free: 92.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.073e-06/2.04, allocations: 8 kB / 1.502 GB, free: 92.79 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/2.04, allocations: 164.3 kB / 1.502 GB, free: 92.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/2.041, allocations: 4 kB / 1.502 GB, free: 92.62 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/2.041, allocations: 87.53 kB / 1.502 GB, free: 92.54 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/2.041, allocations: 31.98 kB / 1.502 GB, free: 92.51 MB / 0.8698 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.0001041/2.041, allocations: 120.8 kB / 1.502 GB, free: 92.38 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/2.041, allocations: 63.16 kB / 1.502 GB, free: 92.32 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/2.043, allocations: 0.8174 MB / 1.503 GB, free: 91.5 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/2.043, allocations: 4 kB / 1.503 GB, free: 91.49 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/2.043, allocations: 4 kB / 1.503 GB, free: 91.49 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/2.043, allocations: 4.078 kB / 1.503 GB, free: 91.48 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/2.046, allocations: 1.472 MB / 1.505 GB, free: 89.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/2.046, allocations: 0 / 1.505 GB, free: 89.96 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/2.046, allocations: 99.97 kB / 1.505 GB, free: 89.87 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003131/2.047, allocations: 120.8 kB / 1.505 GB, free: 89.75 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/2.047, allocations: 7.984 kB / 1.505 GB, free: 89.74 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007604/2.048, allocations: 0.7084 MB / 1.505 GB, free: 89 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/2.048, allocations: 7.938 kB / 1.505 GB, free: 89 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001748/2.049, allocations: 0.9163 MB / 1.506 GB, free: 88.03 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001826/2.051, allocations: 1.307 MB / 1.508 GB, free: 86.67 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/2.051, allocations: 192.1 kB / 1.508 GB, free: 86.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.39e-05/2.052, allocations: 0 / 1.508 GB, free: 86.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004544/2.052, allocations: 55.89 kB / 1.508 GB, free: 86.41 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/2.052, allocations: 27.95 kB / 1.508 GB, free: 86.38 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/2.052, allocations: 27.92 kB / 1.508 GB, free: 86.35 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002724/2.052, allocations: 314.9 kB / 1.508 GB, free: 86.05 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002228/2.055, allocations: 463.2 kB / 1.509 GB, free: 85.59 MB / 0.8698 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.0008591/2.055, allocations: 427.8 kB / 1.509 GB, free: 85.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001386/2.057, allocations: 0.7266 MB / 1.51 GB, free: 84.47 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/2.057, allocations: 0 / 1.51 GB, free: 84.47 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004257/2.057, allocations: 241 kB / 1.51 GB, free: 84.24 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/2.059, allocations: 232.8 kB / 1.51 GB, free: 84.01 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/2.06, allocations: 0.7583 MB / 1.511 GB, free: 83.23 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/2.06, allocations: 0.9901 MB / 1.512 GB, free: 82.21 MB / 0.8698 GB Notification: Performance of SimCode: time 3.31e-07/2.06, allocations: 0 / 1.512 GB, free: 82.21 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)