Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.096/2.096, allocations: 387.2 MB / 394.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 184.7 kB / 487 MB, free: 5.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 221.3 MB / 0.7819 GB, free: 1.484 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 91.27 kB / 0.9213 GB, free: 2.727 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6406/0.6418, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.9446, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9995/1.944, allocations: 394.1 MB / 1.59 GB, free: 12.82 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/1.945, allocations: 90.78 kB / 1.59 GB, free: 12.78 MB / 1.026 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 1.137/3.082, allocations: 240.9 MB / 1.826 GB, free: 312.1 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/3.082, allocations: 12.91 kB / 1.826 GB, free: 312.1 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/3.082, allocations: 80.56 kB / 1.826 GB, free: 312.1 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/3.084, allocations: 0.5199 MB / 1.826 GB, free: 311.7 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.143e-05/3.084, allocations: 14.06 kB / 1.826 GB, free: 311.7 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/3.084, allocations: 34.56 kB / 1.826 GB, free: 311.7 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001288/3.085, allocations: 361 kB / 1.827 GB, free: 311.7 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/3.087, allocations: 0.5031 MB / 1.827 GB, free: 311.4 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/3.087, allocations: 1.781 kB / 1.827 GB, free: 311.4 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.768e-05/3.087, allocations: 1.688 kB / 1.827 GB, free: 311.4 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-05/3.087, allocations: 16.78 kB / 1.827 GB, free: 311.4 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004529/3.091, allocations: 3.112 MB / 1.83 GB, free: 308.8 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/3.092, allocations: 273.8 kB / 1.83 GB, free: 308.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/3.093, allocations: 182.9 kB / 1.831 GB, free: 308.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004148/3.093, allocations: 347.1 kB / 1.831 GB, free: 308.4 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/3.093, allocations: 42.89 kB / 1.831 GB, free: 308.4 MB / 1.135 GB Notification: Performance of pre-optimization done (n=38): time 4.499e-06/3.093, allocations: 1.25 kB / 1.831 GB, free: 308.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=38): time 0.003908/3.097, allocations: 0.7117 MB / 1.832 GB, free: 308.1 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/3.097, allocations: 54.91 kB / 1.832 GB, free: 308.1 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009965/3.098, allocations: 444.8 kB / 1.832 GB, free: 307.9 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/3.098, allocations: 27.48 kB / 1.832 GB, free: 307.9 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/3.099, allocations: 264.6 kB / 1.832 GB, free: 307.7 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/3.099, allocations: 126.8 kB / 1.832 GB, free: 307.6 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/3.099, allocations: 0 / 1.832 GB, free: 307.6 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001379/3.099, allocations: 372.7 kB / 1.833 GB, free: 307.2 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004565/3.099, allocations: 150.6 kB / 1.833 GB, free: 307.2 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/3.1, allocations: 327.7 kB / 1.833 GB, free: 307 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/3.103, allocations: 472.7 kB / 1.834 GB, free: 306.8 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/3.103, allocations: 0.8125 kB / 1.834 GB, free: 306.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.003696/3.107, allocations: 0.8298 MB / 1.835 GB, free: 306.6 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004185/3.107, allocations: 1.745 MB / 1.836 GB, free: 304.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/3.107, allocations: 5.094 kB / 1.836 GB, free: 304.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006767/3.108, allocations: 103.8 kB / 1.836 GB, free: 304.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009247/3.109, allocations: 145.4 kB / 1.837 GB, free: 304.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/3.11, allocations: 0.7292 MB / 1.837 GB, free: 304.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/3.111, allocations: 100 kB / 1.837 GB, free: 304.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/3.112, allocations: 33.95 kB / 1.837 GB, free: 304 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/3.112, allocations: 8.062 kB / 1.837 GB, free: 304 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003185/3.115, allocations: 0.7034 MB / 1.838 GB, free: 303.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/3.115, allocations: 8.094 kB / 1.838 GB, free: 303.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/3.115, allocations: 8 kB / 1.838 GB, free: 303.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008787/3.116, allocations: 159.7 kB / 1.838 GB, free: 303.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/3.116, allocations: 15.89 kB / 1.838 GB, free: 303.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/3.117, allocations: 79.62 kB / 1.838 GB, free: 303.3 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/3.117, allocations: 31.98 kB / 1.838 GB, free: 303.2 MB / 1.135 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.000231/3.117, allocations: 120.7 kB / 1.838 GB, free: 303.1 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/3.118, allocations: 59.31 kB / 1.839 GB, free: 303 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/3.121, allocations: 0.8253 MB / 1.839 GB, free: 302.2 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/3.121, allocations: 15.98 kB / 1.839 GB, free: 302.2 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/3.121, allocations: 4 kB / 1.839 GB, free: 302.2 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/3.121, allocations: 0 / 1.839 GB, free: 302.2 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/3.125, allocations: 1.471 MB / 1.841 GB, free: 300.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/3.125, allocations: 8.094 kB / 1.841 GB, free: 300.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/3.125, allocations: 87.89 kB / 1.841 GB, free: 300.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003607/3.125, allocations: 124.8 kB / 1.841 GB, free: 300.4 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/3.125, allocations: 15.84 kB / 1.841 GB, free: 300.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000867/3.126, allocations: 0.7123 MB / 1.842 GB, free: 299.7 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/3.126, allocations: 0 / 1.842 GB, free: 299.7 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002021/3.128, allocations: 0.9277 MB / 1.843 GB, free: 298.7 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002216/3.131, allocations: 1.3 MB / 1.844 GB, free: 297.4 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/3.131, allocations: 192.1 kB / 1.844 GB, free: 297.2 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/3.131, allocations: 4 kB / 1.844 GB, free: 297.2 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/3.132, allocations: 63.78 kB / 1.844 GB, free: 297.1 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.275e-05/3.132, allocations: 31.89 kB / 1.844 GB, free: 297.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/3.132, allocations: 19.98 kB / 1.844 GB, free: 297 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0004347/3.132, allocations: 331.2 kB / 1.844 GB, free: 296.7 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.00314/3.136, allocations: 467.2 kB / 1.845 GB, free: 296.3 MB / 1.135 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.0009384/3.137, allocations: 412.8 kB / 1.845 GB, free: 295.9 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001745/3.138, allocations: 0.7276 MB / 1.846 GB, free: 295.2 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/3.138, allocations: 4.062 kB / 1.846 GB, free: 295.2 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004637/3.139, allocations: 239.8 kB / 1.846 GB, free: 294.9 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/3.14, allocations: 227.3 kB / 1.846 GB, free: 294.7 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/3.142, allocations: 0.7631 MB / 1.847 GB, free: 293.9 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005254/3.142, allocations: 0.9901 MB / 1.848 GB, free: 292.9 MB / 1.135 GB Notification: Performance of SimCode: time 6.31e-07/3.142, allocations: 4 kB / 1.848 GB, free: 292.9 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)