Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.523/2.523, allocations: 248.6 MB / 255.9 MB, free: 344 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001648/0.001648, allocations: 179.1 kB / 315.1 MB, free: 7.781 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.1 MB / 0.5658 GB, free: 25.46 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00133/0.00133, allocations: 91.14 kB / 0.67 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2973/0.2986, allocations: 112.4 MB / 0.7797 GB, free: 2.457 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5845/0.8832, allocations: 106.2 MB / 0.8835 GB, free: 77.27 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.92, allocations: 392.3 MB / 1.267 GB, free: 15.26 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005175/1.921, allocations: 92.41 kB / 1.267 GB, free: 15.21 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 1.8/3.72, allocations: 351.8 MB / 1.61 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/3.72, allocations: 8 kB / 1.61 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005619/3.721, allocations: 118.7 kB / 1.61 GB, free: 102.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/3.723, allocations: 0.6841 MB / 1.611 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/3.723, allocations: 20 kB / 1.611 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/3.724, allocations: 59.94 kB / 1.611 GB, free: 101.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/3.725, allocations: 325.9 kB / 1.611 GB, free: 101 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/3.726, allocations: 456.4 kB / 1.612 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/3.726, allocations: 0 / 1.612 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.693e-05/3.726, allocations: 0 / 1.612 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/3.726, allocations: 12 kB / 1.612 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00558/3.732, allocations: 2.403 MB / 1.614 GB, free: 98.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/3.732, allocations: 250.7 kB / 1.614 GB, free: 97.76 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/3.733, allocations: 116.8 kB / 1.615 GB, free: 97.64 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003535/3.733, allocations: 344.4 kB / 1.615 GB, free: 97.23 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/3.733, allocations: 38.56 kB / 1.615 GB, free: 97.18 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=29): time 3.266e-06/3.733, allocations: 0 / 1.615 GB, free: 97.18 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29): time 0.002274/3.735, allocations: 427.1 kB / 1.615 GB, free: 96.76 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/3.736, allocations: 55.41 kB / 1.615 GB, free: 96.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/3.737, allocations: 0.5431 MB / 1.616 GB, free: 96.14 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002395/3.737, allocations: 37.7 kB / 1.616 GB, free: 96.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/3.737, allocations: 306.5 kB / 1.616 GB, free: 95.79 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.99e-05/3.737, allocations: 98.56 kB / 1.616 GB, free: 95.69 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/3.737, allocations: 0 / 1.616 GB, free: 95.69 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001228/3.737, allocations: 378.8 kB / 1.617 GB, free: 95.31 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/3.738, allocations: 121 kB / 1.617 GB, free: 95.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/3.739, allocations: 0.7683 MB / 1.618 GB, free: 94.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/3.74, allocations: 311.5 kB / 1.618 GB, free: 93.89 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/3.74, allocations: 0 / 1.618 GB, free: 93.89 MB / 0.8698 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002494/3.743, allocations: 0.5643 MB / 1.618 GB, free: 93.32 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000268/3.743, allocations: 0.8017 MB / 1.619 GB, free: 92.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/3.743, allocations: 7.906 kB / 1.619 GB, free: 92.45 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/3.743, allocations: 4 kB / 1.619 GB, free: 92.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002312/3.746, allocations: 179.7 kB / 1.619 GB, free: 92.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/3.747, allocations: 2.391 MB / 1.622 GB, free: 89.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003371/3.751, allocations: 328.2 kB / 1.622 GB, free: 89.47 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/3.751, allocations: 31.92 kB / 1.622 GB, free: 89.44 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/3.751, allocations: 4 kB / 1.622 GB, free: 89.43 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001934/3.753, allocations: 433.3 kB / 1.622 GB, free: 89.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/3.753, allocations: 4 kB / 1.622 GB, free: 89 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/3.753, allocations: 8.031 kB / 1.622 GB, free: 89 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/3.754, allocations: 140 kB / 1.623 GB, free: 88.86 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/3.754, allocations: 4 kB / 1.623 GB, free: 88.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005071/3.759, allocations: 315.9 kB / 1.623 GB, free: 88.55 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002714/3.76, allocations: 27.98 kB / 1.623 GB, free: 88.52 MB / 0.8698 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000507/3.76, allocations: 129.5 kB / 1.623 GB, free: 88.39 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003917/3.76, allocations: 71.06 kB / 1.623 GB, free: 88.32 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/3.765, allocations: 0.5121 MB / 1.624 GB, free: 87.79 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/3.765, allocations: 4 kB / 1.624 GB, free: 87.79 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/3.765, allocations: 3.938 kB / 1.624 GB, free: 87.78 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/3.765, allocations: 7.984 kB / 1.624 GB, free: 87.77 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00558/3.77, allocations: 1.098 MB / 1.625 GB, free: 86.62 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/3.77, allocations: 0 / 1.625 GB, free: 86.62 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/3.772, allocations: 100 kB / 1.625 GB, free: 86.52 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.136e-05/3.772, allocations: 4 kB / 1.625 GB, free: 86.52 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/3.772, allocations: 11.94 kB / 1.625 GB, free: 86.51 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/3.774, allocations: 2.371 MB / 1.627 GB, free: 84.04 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/3.774, allocations: 8.031 kB / 1.627 GB, free: 84.04 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002052/3.776, allocations: 0.6134 MB / 1.628 GB, free: 83.37 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002104/3.778, allocations: 1.016 MB / 1.629 GB, free: 82.29 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/3.779, allocations: 184.1 kB / 1.629 GB, free: 82.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002456/3.779, allocations: 7.906 kB / 1.629 GB, free: 82.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/3.781, allocations: 55.88 kB / 1.629 GB, free: 82.03 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/3.781, allocations: 27.95 kB / 1.629 GB, free: 82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.089e-05/3.781, allocations: 12 kB / 1.629 GB, free: 81.99 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.00137/3.783, allocations: 415 kB / 1.629 GB, free: 81.59 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.008404/3.791, allocations: 0.5732 MB / 1.63 GB, free: 81.02 MB / 0.8698 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001827/3.793, allocations: 481.5 kB / 1.63 GB, free: 80.54 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00349/3.796, allocations: 0.6365 MB / 1.631 GB, free: 79.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/3.796, allocations: 0 / 1.631 GB, free: 79.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008812/3.797, allocations: 187.7 kB / 1.631 GB, free: 79.72 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/3.801, allocations: 340.9 kB / 1.632 GB, free: 79.39 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/3.804, allocations: 0.8949 MB / 1.632 GB, free: 78.46 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007491/3.805, allocations: 1.055 MB / 1.633 GB, free: 77.38 MB / 0.8698 GB Notification: Performance of SimCode: time 1.152e-06/3.805, allocations: 0 / 1.633 GB, free: 77.38 MB / 0.8698 GB