Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001243, allocations: 188.9 kB / 7.801 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4686/0.4686, allocations: 90.85 MB / 99.07 MB, free: 14.94 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.4 MB / 342.7 MB, free: 5.27 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.00106, allocations: 90.14 kB / 415.5 MB, free: 9.855 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1735/0.1746, allocations: 78.45 MB / 494 MB, free: 11.49 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.5393, allocations: 72.3 MB / 0.553 GB, free: 44.78 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6116/1.151, allocations: 346.4 MB / 0.8913 GB, free: 11.13 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/1.151, allocations: 94.69 kB / 0.8914 GB, free: 11.08 MB / 0.573 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.8304/1.982, allocations: 241 MB / 1.127 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/1.982, allocations: 8 kB / 1.127 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003016/1.982, allocations: 82.97 kB / 1.127 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/1.983, allocations: 0.5151 MB / 1.127 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/1.983, allocations: 20 kB / 1.127 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.288e-05/1.983, allocations: 31.91 kB / 1.127 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006977/1.984, allocations: 357.9 kB / 1.128 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007301/1.985, allocations: 0.5022 MB / 1.128 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/1.985, allocations: 0 / 1.128 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/1.985, allocations: 4 kB / 1.128 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/1.985, allocations: 16 kB / 1.128 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003372/1.988, allocations: 3.099 MB / 1.131 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004768/1.989, allocations: 273.3 kB / 1.131 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/1.989, allocations: 176.8 kB / 1.132 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003069/1.989, allocations: 348.4 kB / 1.132 GB, free: 52.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/1.989, allocations: 42.58 kB / 1.132 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/1.989, allocations: 0 / 1.132 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=38): time 0.002577/1.992, allocations: 0.7119 MB / 1.133 GB, free: 51.39 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/1.992, allocations: 59.41 kB / 1.133 GB, free: 51.32 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005421/1.993, allocations: 447.4 kB / 1.133 GB, free: 50.88 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/1.993, allocations: 29.7 kB / 1.133 GB, free: 50.84 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/1.993, allocations: 256.2 kB / 1.133 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.8e-05/1.993, allocations: 134 kB / 1.134 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/1.993, allocations: 0 / 1.134 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000109/1.993, allocations: 366.8 kB / 1.134 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/1.993, allocations: 149.3 kB / 1.134 GB, free: 49.94 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/1.994, allocations: 327.1 kB / 1.134 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/1.995, allocations: 472.2 kB / 1.135 GB, free: 49.08 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.995, allocations: 0 / 1.135 GB, free: 49.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002305/1.998, allocations: 0.8306 MB / 1.136 GB, free: 48.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000673/1.998, allocations: 1.744 MB / 1.137 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/1.998, allocations: 4 kB / 1.137 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/1.999, allocations: 104.8 kB / 1.137 GB, free: 46.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/2, allocations: 147.7 kB / 1.138 GB, free: 46.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/2.001, allocations: 0.7318 MB / 1.138 GB, free: 45.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008782/2.002, allocations: 95.44 kB / 1.138 GB, free: 45.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/2.002, allocations: 32.05 kB / 1.138 GB, free: 45.22 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/2.002, allocations: 7.938 kB / 1.138 GB, free: 45.21 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002086/2.004, allocations: 0.7081 MB / 1.139 GB, free: 44.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/2.004, allocations: 4 kB / 1.139 GB, free: 44.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/2.004, allocations: 8 kB / 1.139 GB, free: 44.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/2.005, allocations: 163.9 kB / 1.139 GB, free: 44.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/2.005, allocations: 8 kB / 1.139 GB, free: 44.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008759/2.005, allocations: 87.59 kB / 1.139 GB, free: 44.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.109e-05/2.006, allocations: 27.98 kB / 1.139 GB, free: 44.22 MB / 0.6042 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.0002304/2.006, allocations: 120.8 kB / 1.14 GB, free: 44.09 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/2.006, allocations: 59.25 kB / 1.14 GB, free: 44.04 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/2.009, allocations: 0.8215 MB / 1.14 GB, free: 43.19 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/2.009, allocations: 15.94 kB / 1.14 GB, free: 43.17 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/2.009, allocations: 0 / 1.14 GB, free: 43.17 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/2.009, allocations: 3.906 kB / 1.14 GB, free: 43.17 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/2.012, allocations: 1.474 MB / 1.142 GB, free: 41.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/2.012, allocations: 4 kB / 1.142 GB, free: 41.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/2.013, allocations: 87.89 kB / 1.142 GB, free: 41.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/2.013, allocations: 124.9 kB / 1.142 GB, free: 41.42 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/2.013, allocations: 15.98 kB / 1.142 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009628/2.014, allocations: 0.7084 MB / 1.143 GB, free: 40.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/2.014, allocations: 3.938 kB / 1.143 GB, free: 40.67 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002235/2.016, allocations: 0.9167 MB / 1.144 GB, free: 39.7 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002413/2.019, allocations: 1.319 MB / 1.145 GB, free: 38.33 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000474/2.019, allocations: 192.1 kB / 1.145 GB, free: 38.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/2.02, allocations: 0 / 1.145 GB, free: 38.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/2.02, allocations: 55.94 kB / 1.145 GB, free: 38.07 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/2.02, allocations: 27.95 kB / 1.145 GB, free: 38.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-05/2.02, allocations: 19.98 kB / 1.145 GB, free: 38.02 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004623/2.021, allocations: 335.2 kB / 1.146 GB, free: 37.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003104/2.024, allocations: 475.1 kB / 1.146 GB, free: 37.24 MB / 0.6042 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.001385/2.025, allocations: 429 kB / 1.146 GB, free: 36.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001849/2.027, allocations: 0.7233 MB / 1.147 GB, free: 36.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/2.027, allocations: 0 / 1.147 GB, free: 36.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000544/2.028, allocations: 240.9 kB / 1.147 GB, free: 35.87 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/2.029, allocations: 220 kB / 1.148 GB, free: 35.65 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/2.031, allocations: 0.7624 MB / 1.148 GB, free: 34.85 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006247/2.032, allocations: 0.9979 MB / 1.149 GB, free: 33.82 MB / 0.6042 GB Notification: Performance of SimCode: time 1.272e-06/2.032, allocations: 3.938 kB / 1.149 GB, free: 33.82 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)