Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7762/0.7762, allocations: 141.8 MB / 149.1 MB, free: 3.25 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001099, allocations: 184.3 kB / 181.9 MB, free: 15.07 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 221.3 MB / 436 MB, free: 8.188 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009567/0.0009566, allocations: 98.53 kB / 0.507 GB, free: 24.44 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001992/0.001992, allocations: 282.3 kB / 0.5884 GB, free: 11.3 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1994/0.2014, allocations: 89.65 MB / 0.676 GB, free: 1.574 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4812/0.6826, allocations: 82.76 MB / 0.7568 GB, free: 111.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6799/1.363, allocations: 353.5 MB / 1.102 GB, free: 10.77 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/1.363, allocations: 98.92 kB / 1.102 GB, free: 10.72 MB / 0.6357 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.8554/2.218, allocations: 241 MB / 1.337 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/2.218, allocations: 8 kB / 1.337 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002545/2.219, allocations: 83.06 kB / 1.338 GB, free: 127.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/2.22, allocations: 0.515 MB / 1.338 GB, free: 126.7 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/2.22, allocations: 16 kB / 1.338 GB, free: 126.7 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.081e-05/2.22, allocations: 28 kB / 1.338 GB, free: 126.7 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006433/2.22, allocations: 361.9 kB / 1.338 GB, free: 126.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007137/2.221, allocations: 0.51 MB / 1.339 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/2.221, allocations: 3.984 kB / 1.339 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.58e-05/2.221, allocations: 4 kB / 1.339 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/2.221, allocations: 15.94 kB / 1.339 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/2.224, allocations: 3.089 MB / 1.342 GB, free: 122.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/2.225, allocations: 278.8 kB / 1.342 GB, free: 122.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/2.225, allocations: 183.1 kB / 1.342 GB, free: 122 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003065/2.225, allocations: 356.4 kB / 1.343 GB, free: 121.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/2.226, allocations: 30.56 kB / 1.343 GB, free: 121.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=38): time 3.707e-06/2.226, allocations: 4 kB / 1.343 GB, free: 121.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=38): time 0.002378/2.228, allocations: 0.7043 MB / 1.343 GB, free: 120.8 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/2.228, allocations: 59.41 kB / 1.344 GB, free: 120.7 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/2.228, allocations: 451.4 kB / 1.344 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/2.228, allocations: 25.7 kB / 1.344 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/2.229, allocations: 260.2 kB / 1.344 GB, free: 120 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/2.229, allocations: 122.2 kB / 1.344 GB, free: 119.9 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/2.229, allocations: 0 / 1.344 GB, free: 119.9 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.734e-05/2.229, allocations: 366.7 kB / 1.345 GB, free: 119.5 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/2.229, allocations: 153.3 kB / 1.345 GB, free: 119.4 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/2.229, allocations: 331.1 kB / 1.345 GB, free: 119 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/2.231, allocations: 464.2 kB / 1.346 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/2.231, allocations: 0 / 1.346 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002098/2.233, allocations: 0.8383 MB / 1.346 GB, free: 117.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003885/2.233, allocations: 1.74 MB / 1.348 GB, free: 115.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/2.233, allocations: 4 kB / 1.348 GB, free: 115.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/2.234, allocations: 112.8 kB / 1.348 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/2.234, allocations: 139.8 kB / 1.348 GB, free: 115.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000958/2.235, allocations: 0.7357 MB / 1.349 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007946/2.236, allocations: 99.38 kB / 1.349 GB, free: 114.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/2.236, allocations: 32.05 kB / 1.349 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/2.236, allocations: 4 kB / 1.349 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001946/2.238, allocations: 0.7078 MB / 1.35 GB, free: 113.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/2.238, allocations: 4 kB / 1.35 GB, free: 113.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/2.238, allocations: 8 kB / 1.35 GB, free: 113.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006318/2.239, allocations: 164.2 kB / 1.35 GB, free: 113.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/2.239, allocations: 11.94 kB / 1.35 GB, free: 113.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/2.24, allocations: 83.53 kB / 1.35 GB, free: 113.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.92e-05/2.24, allocations: 27.98 kB / 1.35 GB, free: 113.6 MB / 0.6982 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.0001948/2.24, allocations: 129.5 kB / 1.35 GB, free: 113.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/2.24, allocations: 59.16 kB / 1.35 GB, free: 113.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/2.243, allocations: 0.8288 MB / 1.351 GB, free: 112.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/2.243, allocations: 8 kB / 1.351 GB, free: 112.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/2.243, allocations: 0 / 1.351 GB, free: 112.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/2.243, allocations: 0 / 1.351 GB, free: 112.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00334/2.246, allocations: 1.473 MB / 1.353 GB, free: 111.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/2.246, allocations: 4 kB / 1.353 GB, free: 111.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/2.246, allocations: 95.97 kB / 1.353 GB, free: 111 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003455/2.247, allocations: 116.8 kB / 1.353 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/2.247, allocations: 15.98 kB / 1.353 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000866/2.248, allocations: 0.7122 MB / 1.354 GB, free: 110.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/2.248, allocations: 3.906 kB / 1.354 GB, free: 110.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002028/2.25, allocations: 0.9088 MB / 1.354 GB, free: 109.1 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002158/2.252, allocations: 1.32 MB / 1.356 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/2.252, allocations: 192.1 kB / 1.356 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/2.252, allocations: 7.922 kB / 1.356 GB, free: 107.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/2.253, allocations: 55.86 kB / 1.356 GB, free: 107.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/2.253, allocations: 31.95 kB / 1.356 GB, free: 107.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.196e-05/2.253, allocations: 19.98 kB / 1.356 GB, free: 107.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0003982/2.254, allocations: 335.1 kB / 1.356 GB, free: 107.1 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002833/2.256, allocations: 471.2 kB / 1.357 GB, free: 106.7 MB / 0.6982 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.001112/2.258, allocations: 418.8 kB / 1.357 GB, free: 106.2 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001669/2.259, allocations: 0.7192 MB / 1.358 GB, free: 105.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/2.259, allocations: 0 / 1.358 GB, free: 105.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004865/2.26, allocations: 245.1 kB / 1.358 GB, free: 105.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/2.261, allocations: 224.4 kB / 1.358 GB, free: 105.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/2.263, allocations: 0.77 MB / 1.359 GB, free: 104.3 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/2.263, allocations: 0.994 MB / 1.36 GB, free: 103.2 MB / 0.6982 GB Notification: Performance of SimCode: time 4.81e-07/2.264, allocations: 0 / 1.36 GB, free: 103.2 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)