Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_7_0_0_Buildings_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/Buildings 7.0.1/package.mo): time 2.472/2.472, allocations: 248.6 MB / 255.9 MB, free: 7.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001691/0.001691, allocations: 184.2 kB / 315.1 MB, free: 4.312 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.087/2.087, allocations: 205.1 MB / 0.5658 GB, free: 484 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001814/0.001814, allocations: 90.61 kB / 0.67 GB, free: 5.695 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.509/0.5109, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.7184, allocations: 106.2 MB / 0.8835 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.454/2.172, allocations: 389.2 MB / 1.264 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003659/2.173, allocations: 89.22 kB / 1.264 GB, free: 243.4 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.8102/2.983, allocations: 229.8 MB / 1.488 GB, free: 78.02 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/2.983, allocations: 8 kB / 1.488 GB, free: 78.01 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/2.983, allocations: 82.97 kB / 1.488 GB, free: 77.93 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/2.984, allocations: 0.519 MB / 1.489 GB, free: 77.37 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/2.984, allocations: 12 kB / 1.489 GB, free: 77.36 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-05/2.985, allocations: 32 kB / 1.489 GB, free: 77.32 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/2.986, allocations: 353.9 kB / 1.489 GB, free: 76.98 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/2.987, allocations: 0.4983 MB / 1.49 GB, free: 76.41 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/2.987, allocations: 3.938 kB / 1.49 GB, free: 76.41 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/2.987, allocations: 8 kB / 1.49 GB, free: 76.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/2.987, allocations: 15.91 kB / 1.49 GB, free: 76.39 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004547/2.991, allocations: 3.096 MB / 1.493 GB, free: 73.11 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006948/2.992, allocations: 274.7 kB / 1.493 GB, free: 72.84 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/2.993, allocations: 180 kB / 1.493 GB, free: 72.66 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000366/2.993, allocations: 352.4 kB / 1.493 GB, free: 72.24 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/2.993, allocations: 38.47 kB / 1.493 GB, free: 72.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=38): time 3.477e-06/2.993, allocations: 0 / 1.493 GB, free: 72.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=38): time 0.004027/2.997, allocations: 0.7008 MB / 1.494 GB, free: 71.48 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/2.997, allocations: 59.41 kB / 1.494 GB, free: 71.41 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000767/2.998, allocations: 434.4 kB / 1.495 GB, free: 70.98 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 8.654e-05/2.998, allocations: 29.7 kB / 1.495 GB, free: 70.95 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/2.998, allocations: 260.2 kB / 1.495 GB, free: 70.69 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.000111/2.998, allocations: 126.1 kB / 1.495 GB, free: 70.56 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/2.998, allocations: 0 / 1.495 GB, free: 70.56 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001135/2.999, allocations: 366.7 kB / 1.495 GB, free: 70.2 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/2.999, allocations: 153.3 kB / 1.495 GB, free: 70.05 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/3, allocations: 330.9 kB / 1.496 GB, free: 69.64 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/3.002, allocations: 476.2 kB / 1.496 GB, free: 69.18 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/3.003, allocations: 3.938 kB / 1.496 GB, free: 69.18 MB / 0.8542 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.004015/3.007, allocations: 0.8266 MB / 1.497 GB, free: 68.34 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003686/3.007, allocations: 1.744 MB / 1.499 GB, free: 66.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/3.007, allocations: 8 kB / 1.499 GB, free: 66.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006951/3.008, allocations: 112.8 kB / 1.499 GB, free: 66.34 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/3.009, allocations: 139.8 kB / 1.499 GB, free: 66.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/3.011, allocations: 0.7279 MB / 1.5 GB, free: 65.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/3.013, allocations: 103.3 kB / 1.5 GB, free: 65.34 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/3.013, allocations: 32.05 kB / 1.5 GB, free: 65.31 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/3.013, allocations: 4 kB / 1.5 GB, free: 65.31 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006627/3.02, allocations: 0.7002 MB / 1.5 GB, free: 64.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/3.02, allocations: 4 kB / 1.5 GB, free: 64.61 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.166e-05/3.02, allocations: 8 kB / 1.5 GB, free: 64.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/3.022, allocations: 164 kB / 1.501 GB, free: 64.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/3.022, allocations: 16 kB / 1.501 GB, free: 64.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/3.024, allocations: 79.53 kB / 1.501 GB, free: 64.34 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/3.025, allocations: 35.98 kB / 1.501 GB, free: 64.31 MB / 0.8542 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.0002804/3.025, allocations: 120.8 kB / 1.501 GB, free: 64.18 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/3.025, allocations: 63.16 kB / 1.501 GB, free: 64.12 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/3.03, allocations: 0.8096 MB / 1.502 GB, free: 63.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/3.03, allocations: 15.92 kB / 1.502 GB, free: 63.29 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/3.03, allocations: 0 / 1.502 GB, free: 63.29 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/3.03, allocations: 0 / 1.502 GB, free: 63.29 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00563/3.036, allocations: 1.458 MB / 1.503 GB, free: 61.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/3.036, allocations: 3.938 kB / 1.503 GB, free: 61.76 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007523/3.036, allocations: 103.9 kB / 1.503 GB, free: 61.66 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006233/3.037, allocations: 116.8 kB / 1.503 GB, free: 61.54 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.937e-05/3.037, allocations: 7.984 kB / 1.503 GB, free: 61.54 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/3.039, allocations: 0.7163 MB / 1.504 GB, free: 60.79 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/3.039, allocations: 8.047 kB / 1.504 GB, free: 60.79 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003965/3.043, allocations: 0.9201 MB / 1.505 GB, free: 59.82 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004071/3.047, allocations: 1.304 MB / 1.506 GB, free: 58.46 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/3.047, allocations: 188.1 kB / 1.506 GB, free: 58.26 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/3.048, allocations: 7.922 kB / 1.506 GB, free: 58.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008706/3.048, allocations: 51.89 kB / 1.507 GB, free: 58.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.984e-05/3.049, allocations: 31.95 kB / 1.507 GB, free: 58.17 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.63e-05/3.049, allocations: 19.98 kB / 1.507 GB, free: 58.15 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0005423/3.049, allocations: 326.9 kB / 1.507 GB, free: 57.83 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.003798/3.053, allocations: 455.2 kB / 1.507 GB, free: 57.39 MB / 0.8542 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.001226/3.054, allocations: 416.4 kB / 1.508 GB, free: 56.98 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002499/3.057, allocations: 0.723 MB / 1.508 GB, free: 56.25 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/3.057, allocations: 0 / 1.508 GB, free: 56.25 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0008749/3.058, allocations: 252.9 kB / 1.509 GB, free: 56.01 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/3.06, allocations: 233.4 kB / 1.509 GB, free: 55.78 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/3.063, allocations: 0.7516 MB / 1.51 GB, free: 55 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006871/3.063, allocations: 0.994 MB / 1.511 GB, free: 53.98 MB / 0.8542 GB Notification: Performance of SimCode: time 1.162e-06/3.063, allocations: 0 / 1.511 GB, free: 53.98 MB / 0.8542 GB