Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 3.946/3.946, allocations: 433 MB / 440.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2571/4.203, allocations: 104.4 MB / 0.5319 GB, free: 2.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5296/4.733, allocations: 98.69 MB / 0.6283 GB, free: 92 kB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9339/5.667, allocations: 384 MB / 1.003 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/5.667, allocations: 91.7 kB / 1.003 GB, free: 13.79 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 1.729/7.397, allocations: 348.4 MB / 1.344 GB, free: 56.59 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/7.397, allocations: 11.98 kB / 1.344 GB, free: 56.58 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006018/7.397, allocations: 114.8 kB / 1.344 GB, free: 56.47 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002307/7.4, allocations: 0.6803 MB / 1.344 GB, free: 55.76 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/7.4, allocations: 19.91 kB / 1.344 GB, free: 55.74 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/7.4, allocations: 52 kB / 1.344 GB, free: 55.69 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009922/7.401, allocations: 317.9 kB / 1.345 GB, free: 55.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/7.402, allocations: 448.4 kB / 1.345 GB, free: 54.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/7.402, allocations: 3.938 kB / 1.345 GB, free: 54.91 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.926e-05/7.402, allocations: 4 kB / 1.345 GB, free: 54.91 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/7.402, allocations: 15.98 kB / 1.345 GB, free: 54.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005199/7.407, allocations: 2.365 MB / 1.348 GB, free: 52.43 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/7.409, allocations: 265.2 kB / 1.348 GB, free: 52.16 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004742/7.41, allocations: 112.3 kB / 1.348 GB, free: 52.05 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005201/7.41, allocations: 337.8 kB / 1.348 GB, free: 51.65 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/7.41, allocations: 38.8 kB / 1.348 GB, free: 51.61 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=27): time 5.661e-06/7.41, allocations: 0 / 1.348 GB, free: 51.61 MB / 0.8073 GB Notification: Performance of matching and sorting (n=27): time 0.003954/7.414, allocations: 407.2 kB / 1.349 GB, free: 51.2 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/7.414, allocations: 59.41 kB / 1.349 GB, free: 51.13 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/7.416, allocations: 0.543 MB / 1.349 GB, free: 50.58 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0004827/7.417, allocations: 29.7 kB / 1.349 GB, free: 50.55 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005664/7.418, allocations: 318.8 kB / 1.35 GB, free: 50.23 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.000223/7.418, allocations: 90.66 kB / 1.35 GB, free: 50.14 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.693e-05/7.418, allocations: 0 / 1.35 GB, free: 50.14 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0002427/7.418, allocations: 378.8 kB / 1.35 GB, free: 49.76 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/7.419, allocations: 121 kB / 1.35 GB, free: 49.64 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/7.421, allocations: 0.7644 MB / 1.351 GB, free: 48.65 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/7.423, allocations: 312.4 kB / 1.351 GB, free: 48.34 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/7.423, allocations: 0 / 1.351 GB, free: 48.34 MB / 0.8073 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002561/7.426, allocations: 0.5605 MB / 1.352 GB, free: 47.77 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001791/7.426, allocations: 0.8016 MB / 1.353 GB, free: 46.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/7.426, allocations: 0 / 1.353 GB, free: 46.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/7.426, allocations: 8 kB / 1.353 GB, free: 46.91 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/7.428, allocations: 181.4 kB / 1.353 GB, free: 46.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/7.43, allocations: 2.399 MB / 1.355 GB, free: 44.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/7.434, allocations: 324.3 kB / 1.355 GB, free: 43.92 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/7.434, allocations: 27.98 kB / 1.355 GB, free: 43.89 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/7.434, allocations: 0 / 1.355 GB, free: 43.89 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001886/7.436, allocations: 425.2 kB / 1.356 GB, free: 43.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/7.436, allocations: 7.938 kB / 1.356 GB, free: 43.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/7.436, allocations: 8.188 kB / 1.356 GB, free: 43.46 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/7.437, allocations: 135.8 kB / 1.356 GB, free: 43.33 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/7.437, allocations: 7.984 kB / 1.356 GB, free: 43.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003319/7.44, allocations: 308 kB / 1.356 GB, free: 43.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/7.44, allocations: 27.98 kB / 1.356 GB, free: 43 MB / 0.8073 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.0003728/7.441, allocations: 129.4 kB / 1.356 GB, free: 42.86 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/7.441, allocations: 71.06 kB / 1.356 GB, free: 42.79 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/7.443, allocations: 483.8 kB / 1.357 GB, free: 42.31 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/7.443, allocations: 7.984 kB / 1.357 GB, free: 42.3 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/7.443, allocations: 7.844 kB / 1.357 GB, free: 42.29 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/7.443, allocations: 0 / 1.357 GB, free: 42.29 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/7.447, allocations: 1.042 MB / 1.358 GB, free: 41.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/7.447, allocations: 4 kB / 1.358 GB, free: 41.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008404/7.448, allocations: 96.7 kB / 1.358 GB, free: 41.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.365e-05/7.448, allocations: 4 kB / 1.358 GB, free: 41.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/7.448, allocations: 7.938 kB / 1.358 GB, free: 41.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/7.449, allocations: 2.371 MB / 1.36 GB, free: 38.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/7.449, allocations: 4.031 kB / 1.36 GB, free: 38.63 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001804/7.451, allocations: 0.5462 MB / 1.361 GB, free: 38.05 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001939/7.453, allocations: 0.9607 MB / 1.362 GB, free: 37.05 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004416/7.453, allocations: 192 kB / 1.362 GB, free: 36.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/7.453, allocations: 3.984 kB / 1.362 GB, free: 36.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/7.454, allocations: 59.84 kB / 1.362 GB, free: 36.78 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/7.454, allocations: 27.97 kB / 1.362 GB, free: 36.75 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.092e-05/7.454, allocations: 15.98 kB / 1.362 GB, free: 36.73 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0007325/7.455, allocations: 407.1 kB / 1.363 GB, free: 36.34 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.004494/7.46, allocations: 0.5742 MB / 1.363 GB, free: 35.77 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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.001338/7.461, allocations: 487.6 kB / 1.364 GB, free: 35.31 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.003336/7.464, allocations: 0.614 MB / 1.364 GB, free: 34.7 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/7.465, allocations: 0 / 1.364 GB, free: 34.7 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0007742/7.465, allocations: 176.6 kB / 1.364 GB, free: 34.52 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/7.469, allocations: 342.2 kB / 1.365 GB, free: 34.19 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/7.472, allocations: 0.8596 MB / 1.365 GB, free: 33.3 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007129/7.472, allocations: 1.051 MB / 1.366 GB, free: 32.22 MB / 0.8073 GB Notification: Performance of SimCode: time 1.162e-06/7.472, allocations: 0 / 1.366 GB, free: 32.22 MB / 0.8073 GB