Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildSysPro_BuildSysPro_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/BuildSysPro 3.5.0/package.mo): time 0.7903/0.7903, allocations: 127.4 MB / 134.6 MB, free: 4.086 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 185.2 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.1 MB / 399.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 88.42 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3013/0.3025, allocations: 82.9 MB / 0.5461 GB, free: 42.64 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.4401, allocations: 76.74 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9695/1.41, allocations: 356.1 MB / 0.9688 GB, free: 125.5 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/1.41, allocations: 95.69 kB / 0.9688 GB, free: 125.5 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.8095/2.22, allocations: 233.1 MB / 1.196 GB, free: 156.9 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/2.22, allocations: 9.625 kB / 1.196 GB, free: 156.9 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/2.221, allocations: 273.2 kB / 1.197 GB, free: 156.8 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/2.223, allocations: 0.5121 MB / 1.197 GB, free: 156.4 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/2.223, allocations: 15.22 kB / 1.197 GB, free: 156.4 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/2.223, allocations: 32.3 kB / 1.197 GB, free: 156.4 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008923/2.224, allocations: 398.5 kB / 1.198 GB, free: 156.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/2.225, allocations: 0.5265 MB / 1.198 GB, free: 155.8 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/2.225, allocations: 5.656 kB / 1.198 GB, free: 155.8 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/2.225, allocations: 6.438 kB / 1.198 GB, free: 155.8 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/2.225, allocations: 11.31 kB / 1.198 GB, free: 155.8 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004427/2.229, allocations: 3.359 MB / 1.201 GB, free: 152.7 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/2.23, allocations: 283.5 kB / 1.202 GB, free: 152.6 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/2.23, allocations: 178.4 kB / 1.202 GB, free: 152.5 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/2.231, allocations: 186.2 kB / 1.202 GB, free: 152.3 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/2.231, allocations: 36.56 kB / 1.202 GB, free: 152.3 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=34): time 2.975e-06/2.231, allocations: 3 kB / 1.202 GB, free: 152.3 MB / 0.6355 GB Notification: Performance of matching and sorting (n=34): time 0.006034/2.237, allocations: 1.184 MB / 1.203 GB, free: 151.7 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/2.237, allocations: 55.12 kB / 1.203 GB, free: 151.6 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006396/2.237, allocations: 432 kB / 1.204 GB, free: 151.4 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.251e-05/2.237, allocations: 30.58 kB / 1.204 GB, free: 151.3 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/2.238, allocations: 271.6 kB / 1.204 GB, free: 151.1 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/2.238, allocations: 112.1 kB / 1.204 GB, free: 151 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/2.238, allocations: 1 kB / 1.204 GB, free: 151 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001072/2.238, allocations: 367.5 kB / 1.204 GB, free: 150.6 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004495/2.238, allocations: 229.9 kB / 1.205 GB, free: 150.5 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/2.239, allocations: 417.3 kB / 1.205 GB, free: 150.2 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/2.242, allocations: 0.6051 MB / 1.206 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/2.242, allocations: 4.781 kB / 1.206 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003592/2.245, allocations: 1.086 MB / 1.207 GB, free: 149.3 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003459/2.246, allocations: 1.742 MB / 1.208 GB, free: 147.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/2.246, allocations: 6.656 kB / 1.208 GB, free: 147.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006088/2.246, allocations: 191.1 kB / 1.209 GB, free: 147.4 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/2.247, allocations: 212.8 kB / 1.209 GB, free: 147.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/2.25, allocations: 0.917 MB / 1.21 GB, free: 146.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/2.252, allocations: 175.6 kB / 1.21 GB, free: 146.6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/2.252, allocations: 39.61 kB / 1.21 GB, free: 146.5 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/2.252, allocations: 3.344 kB / 1.21 GB, free: 146.5 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003301/2.255, allocations: 0.9516 MB / 1.211 GB, free: 146.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/2.255, allocations: 4.406 kB / 1.211 GB, free: 146.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/2.255, allocations: 8.062 kB / 1.211 GB, free: 146.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/2.257, allocations: 254 kB / 1.211 GB, free: 146 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/2.257, allocations: 11.59 kB / 1.211 GB, free: 146 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/2.258, allocations: 154.9 kB / 1.211 GB, free: 145.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/2.258, allocations: 34.78 kB / 1.211 GB, free: 145.9 MB / 0.6355 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 (63): * Single equations (assignments): 62 * 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.0002472/2.259, allocations: 129.3 kB / 1.211 GB, free: 145.8 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/2.259, allocations: 61.14 kB / 1.212 GB, free: 145.8 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/2.263, allocations: 1.007 MB / 1.212 GB, free: 145.2 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/2.263, allocations: 3.25 kB / 1.212 GB, free: 145.2 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/2.263, allocations: 1 kB / 1.212 GB, free: 145.2 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/2.263, allocations: 0 / 1.212 GB, free: 145.2 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007956/2.271, allocations: 2.158 MB / 1.215 GB, free: 143.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/2.271, allocations: 0 / 1.215 GB, free: 143.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/2.272, allocations: 155.1 kB / 1.215 GB, free: 143.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004724/2.272, allocations: 175.9 kB / 1.215 GB, free: 143.8 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-05/2.272, allocations: 13 kB / 1.215 GB, free: 143.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/2.275, allocations: 0.8932 MB / 1.216 GB, free: 143.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/2.275, allocations: 7.812 kB / 1.216 GB, free: 143.1 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006176/2.281, allocations: 1.405 MB / 1.217 GB, free: 142.3 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005643/2.287, allocations: 1.814 MB / 1.219 GB, free: 140.5 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/2.287, allocations: 204.2 kB / 1.219 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/2.288, allocations: 0 / 1.219 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/2.289, allocations: 135.8 kB / 1.219 GB, free: 140.2 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/2.289, allocations: 23.95 kB / 1.219 GB, free: 140.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.749e-05/2.289, allocations: 23.97 kB / 1.219 GB, free: 140.1 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0004358/2.29, allocations: 318.9 kB / 1.22 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003084/2.293, allocations: 431.3 kB / 1.22 GB, free: 139.4 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0008882/2.294, allocations: 358.3 kB / 1.22 GB, free: 139.1 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00302/2.297, allocations: 1.038 MB / 1.221 GB, free: 138.1 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/2.297, allocations: 0 / 1.221 GB, free: 138.1 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/2.298, allocations: 383.7 kB / 1.222 GB, free: 137.7 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/2.3, allocations: 226.8 kB / 1.222 GB, free: 137.5 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/2.302, allocations: 0.9153 MB / 1.223 GB, free: 136.5 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007754/2.303, allocations: 1.013 MB / 1.224 GB, free: 135.5 MB / 0.6355 GB Notification: Performance of SimCode: time 8.52e-07/2.303, allocations: 0 / 1.224 GB, free: 135.5 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)