Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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.0/package.mo): time 2.607/2.607, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001705/0.001704, allocations: 185.2 kB / 360.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.2 MB / 0.6187 GB, free: 13.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001256/0.001256, allocations: 90 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3001/0.3014, allocations: 121.4 MB / 0.8502 GB, free: 3.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6542/0.9557, allocations: 115.2 MB / 0.9627 GB, free: 78.49 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/2.061, allocations: 400.3 MB / 1.354 GB, free: 167.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/2.062, allocations: 94.02 kB / 1.354 GB, free: 167.3 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 2.17/4.232, allocations: 428.4 MB / 1.772 GB, free: 197 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/4.232, allocations: 12.5 kB / 1.772 GB, free: 197 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004936/4.232, allocations: 148.1 kB / 1.772 GB, free: 196.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/4.235, allocations: 0.8509 MB / 1.773 GB, free: 196 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/4.235, allocations: 20 kB / 1.773 GB, free: 196 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003404/4.236, allocations: 76 kB / 1.773 GB, free: 195.9 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00117/4.237, allocations: 406.4 kB / 1.774 GB, free: 195.5 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/4.238, allocations: 0.52 MB / 1.774 GB, free: 195 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/4.238, allocations: 4.453 kB / 1.774 GB, free: 195 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/4.238, allocations: 3.938 kB / 1.774 GB, free: 195 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/4.238, allocations: 16 kB / 1.774 GB, free: 195 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006146/4.244, allocations: 2.931 MB / 1.777 GB, free: 191.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008083/4.245, allocations: 307.4 kB / 1.777 GB, free: 191.6 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003459/4.246, allocations: 133.4 kB / 1.777 GB, free: 191.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003371/4.246, allocations: 348.6 kB / 1.778 GB, free: 191.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/4.246, allocations: 45 kB / 1.778 GB, free: 191 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=33): time 4.278e-06/4.246, allocations: 4.75 kB / 1.778 GB, free: 191 MB / 0.9323 GB Notification: Performance of matching and sorting (n=33): time 0.002329/4.248, allocations: 498.7 kB / 1.778 GB, free: 190.5 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/4.248, allocations: 55.41 kB / 1.778 GB, free: 190.5 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/4.249, allocations: 0.6312 MB / 1.779 GB, free: 189.8 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002041/4.25, allocations: 33.7 kB / 1.779 GB, free: 189.8 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003632/4.25, allocations: 405.1 kB / 1.779 GB, free: 189.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/4.25, allocations: 102.4 kB / 1.779 GB, free: 189.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/4.25, allocations: 4 kB / 1.779 GB, free: 189.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.317e-05/4.25, allocations: 334 kB / 1.78 GB, free: 188.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004389/4.251, allocations: 157.2 kB / 1.78 GB, free: 188.8 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/4.253, allocations: 1.415 MB / 1.781 GB, free: 187 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/4.254, allocations: 388 kB / 1.782 GB, free: 186.6 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/4.254, allocations: 4 kB / 1.782 GB, free: 186.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002577/4.257, allocations: 0.6639 MB / 1.782 GB, free: 185.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001824/4.257, allocations: 0.8023 MB / 1.783 GB, free: 185 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/4.257, allocations: 0 / 1.783 GB, free: 185 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/4.257, allocations: 11.91 kB / 1.783 GB, free: 185 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002699/4.26, allocations: 211.6 kB / 1.783 GB, free: 184.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/4.262, allocations: 2.997 MB / 1.786 GB, free: 181.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007281/4.269, allocations: 0.7654 MB / 1.787 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002512/4.27, allocations: 27.98 kB / 1.787 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/4.27, allocations: 4 kB / 1.787 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002301/4.272, allocations: 0.4953 MB / 1.788 GB, free: 180.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/4.272, allocations: 4 kB / 1.788 GB, free: 180.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/4.272, allocations: 4 kB / 1.788 GB, free: 180.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/4.274, allocations: 164 kB / 1.788 GB, free: 180.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/4.274, allocations: 8 kB / 1.788 GB, free: 180.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01097/4.285, allocations: 0.7576 MB / 1.788 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/4.286, allocations: 23.98 kB / 1.788 GB, free: 179.5 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009148/4.286, allocations: 129.9 kB / 1.789 GB, free: 179.3 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/4.287, allocations: 87.62 kB / 1.789 GB, free: 179.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/4.291, allocations: 0.5741 MB / 1.789 GB, free: 178.7 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/4.291, allocations: 4 kB / 1.789 GB, free: 178.7 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/4.291, allocations: 3.906 kB / 1.789 GB, free: 178.7 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/4.291, allocations: 7.922 kB / 1.789 GB, free: 178.6 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005538/4.296, allocations: 1.219 MB / 1.79 GB, free: 177.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/4.297, allocations: 6.484 kB / 1.79 GB, free: 177.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/4.298, allocations: 131.7 kB / 1.791 GB, free: 177.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.169e-05/4.298, allocations: 4 kB / 1.791 GB, free: 177.2 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.965e-05/4.298, allocations: 4 kB / 1.791 GB, free: 177.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001963/4.3, allocations: 2.958 MB / 1.793 GB, free: 174.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/4.3, allocations: 4.031 kB / 1.793 GB, free: 174.2 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003086/4.304, allocations: 0.6655 MB / 1.794 GB, free: 173.4 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004383/4.308, allocations: 1.085 MB / 1.795 GB, free: 172.3 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007274/4.309, allocations: 207.8 kB / 1.795 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/4.309, allocations: 4 kB / 1.795 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/4.311, allocations: 75.7 kB / 1.795 GB, free: 172 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/4.311, allocations: 28.53 kB / 1.795 GB, free: 172 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/4.311, allocations: 15.98 kB / 1.795 GB, free: 172 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001392/4.313, allocations: 480 kB / 1.796 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.005638/4.319, allocations: 0.6943 MB / 1.797 GB, free: 170.8 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/4.32, allocations: 0.5024 MB / 1.797 GB, free: 170.3 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.004484/4.324, allocations: 0.7708 MB / 1.798 GB, free: 169.6 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/4.324, allocations: 0.75 kB / 1.798 GB, free: 169.6 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009956/4.325, allocations: 219.8 kB / 1.798 GB, free: 169.3 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004217/4.33, allocations: 392 kB / 1.798 GB, free: 169 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003687/4.333, allocations: 1.054 MB / 1.799 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008779/4.334, allocations: 1.128 MB / 1.801 GB, free: 166.7 MB / 0.9323 GB Notification: Performance of SimCode: time 2.054e-06/4.334, allocations: 0 / 1.801 GB, free: 166.7 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)