Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.413/1.413, allocations: 285.5 MB / 292.8 MB, free: 9.754 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.0009562/0.0009561, allocations: 179.5 kB / 361.1 MB, free: 356 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.192/1.192, allocations: 205.1 MB / 0.6195 GB, free: 2.832 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.0008293/0.0008292, allocations: 89.47 kB / 0.7326 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4511/0.452, allocations: 121.4 MB / 0.8512 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.6482, allocations: 115.3 MB / 0.9638 GB, free: 56.26 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7194/1.368, allocations: 396 MB / 1.35 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/1.368, allocations: 90.55 kB / 1.351 GB, free: 10.98 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.8425/2.21, allocations: 236.1 MB / 1.581 GB, free: 194.8 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/2.211, allocations: 8.312 kB / 1.581 GB, free: 194.8 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/2.211, allocations: 93.78 kB / 1.581 GB, free: 194.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008993/2.212, allocations: 0.504 MB / 1.582 GB, free: 194.4 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/2.212, allocations: 19.62 kB / 1.582 GB, free: 194.4 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/2.212, allocations: 27.34 kB / 1.582 GB, free: 194.4 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005832/2.212, allocations: 357.6 kB / 1.582 GB, free: 194.2 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/2.213, allocations: 0.5095 MB / 1.583 GB, free: 193.8 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/2.213, allocations: 7.875 kB / 1.583 GB, free: 193.8 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/2.213, allocations: 7.844 kB / 1.583 GB, free: 193.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/2.213, allocations: 11.72 kB / 1.583 GB, free: 193.8 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/2.216, allocations: 3.096 MB / 1.586 GB, free: 191 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/2.216, allocations: 277.8 kB / 1.586 GB, free: 190.8 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/2.216, allocations: 175.2 kB / 1.586 GB, free: 190.8 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002502/2.216, allocations: 359 kB / 1.586 GB, free: 190.4 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/2.217, allocations: 34.31 kB / 1.586 GB, free: 190.3 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=38): time 1.803e-06/2.217, allocations: 0 / 1.586 GB, free: 190.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=38): time 0.002052/2.219, allocations: 0.7087 MB / 1.587 GB, free: 189.9 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/2.219, allocations: 59.38 kB / 1.587 GB, free: 189.9 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/2.219, allocations: 430.5 kB / 1.588 GB, free: 189.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/2.219, allocations: 29.61 kB / 1.588 GB, free: 189.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 9.984e-05/2.219, allocations: 255.6 kB / 1.588 GB, free: 189.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 6.446e-05/2.219, allocations: 129.7 kB / 1.588 GB, free: 189.2 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/2.219, allocations: 0 / 1.588 GB, free: 189.2 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.21e-05/2.219, allocations: 362.5 kB / 1.588 GB, free: 188.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/2.22, allocations: 155.5 kB / 1.589 GB, free: 188.8 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/2.22, allocations: 320.9 kB / 1.589 GB, free: 188.5 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/2.221, allocations: 470.6 kB / 1.589 GB, free: 188.3 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/2.221, allocations: 5.375 kB / 1.589 GB, free: 188.2 MB / 0.9323 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002357/2.224, allocations: 0.8295 MB / 1.59 GB, free: 187.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002931/2.224, allocations: 1.744 MB / 1.592 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/2.224, allocations: 4.781 kB / 1.592 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004222/2.224, allocations: 108.8 kB / 1.592 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/2.225, allocations: 141.5 kB / 1.592 GB, free: 185.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009554/2.226, allocations: 0.7354 MB / 1.593 GB, free: 185.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006782/2.227, allocations: 87.34 kB / 1.593 GB, free: 185.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/2.227, allocations: 35.05 kB / 1.593 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/2.227, allocations: 4.062 kB / 1.593 GB, free: 185.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001959/2.229, allocations: 0.7099 MB / 1.594 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/2.229, allocations: 3.75 kB / 1.594 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/2.229, allocations: 11.66 kB / 1.594 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/2.23, allocations: 159.4 kB / 1.594 GB, free: 184.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/2.23, allocations: 15.27 kB / 1.594 GB, free: 184.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/2.23, allocations: 85.97 kB / 1.594 GB, free: 184.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/2.23, allocations: 33.98 kB / 1.594 GB, free: 184.7 MB / 0.9323 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.0001564/2.23, allocations: 122.8 kB / 1.594 GB, free: 184.6 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/2.231, allocations: 57.19 kB / 1.594 GB, free: 184.5 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/2.233, allocations: 0.809 MB / 1.595 GB, free: 184.1 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/2.233, allocations: 9.203 kB / 1.595 GB, free: 184.1 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/2.233, allocations: 0 / 1.595 GB, free: 184.1 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/2.233, allocations: 4.469 kB / 1.595 GB, free: 184.1 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/2.236, allocations: 1.482 MB / 1.596 GB, free: 183 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/2.237, allocations: 5.188 kB / 1.596 GB, free: 183 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003935/2.237, allocations: 94.62 kB / 1.596 GB, free: 183 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003698/2.237, allocations: 125.9 kB / 1.597 GB, free: 182.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/2.237, allocations: 12.59 kB / 1.597 GB, free: 182.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/2.238, allocations: 0.7106 MB / 1.597 GB, free: 182.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/2.238, allocations: 1.344 kB / 1.597 GB, free: 182.3 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002205/2.24, allocations: 0.9202 MB / 1.598 GB, free: 181.7 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002128/2.243, allocations: 1.304 MB / 1.599 GB, free: 180.7 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/2.243, allocations: 200.4 kB / 1.6 GB, free: 180.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/2.243, allocations: 1.031 kB / 1.6 GB, free: 180.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005755/2.244, allocations: 61.25 kB / 1.6 GB, free: 180.5 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.12e-05/2.244, allocations: 24.53 kB / 1.6 GB, free: 180.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/2.244, allocations: 21.2 kB / 1.6 GB, free: 180.5 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0003864/2.244, allocations: 322.5 kB / 1.6 GB, free: 180.3 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002772/2.247, allocations: 465.6 kB / 1.6 GB, free: 180.1 MB / 0.9323 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.0009547/2.248, allocations: 427.6 kB / 1.601 GB, free: 179.9 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001629/2.25, allocations: 0.7283 MB / 1.602 GB, free: 179.6 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/2.25, allocations: 0 / 1.602 GB, free: 179.6 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005348/2.25, allocations: 248.7 kB / 1.602 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/2.251, allocations: 225.7 kB / 1.602 GB, free: 179.4 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/2.253, allocations: 0.7534 MB / 1.603 GB, free: 179 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006079/2.254, allocations: 0.9924 MB / 1.604 GB, free: 178.1 MB / 0.9323 GB Notification: Performance of SimCode: time 4.51e-07/2.254, allocations: 0 / 1.604 GB, free: 178.1 MB / 0.9323 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)