Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",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.656/3.656, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4879/4.144, allocations: 104.3 MB / 0.5319 GB, free: 12.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/4.394, allocations: 98.73 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.987/5.381, allocations: 405.3 MB / 1.024 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/5.382, allocations: 86.95 kB / 1.024 GB, free: 14.13 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 7.292/12.67, allocations: 1.453 GB / 2.478 GB, free: 111.1 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/12.67, allocations: 7.719 kB / 2.478 GB, free: 111.1 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008195/12.68, allocations: 0.872 MB / 2.478 GB, free: 110.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02885/12.71, allocations: 6.9 MB / 2.485 GB, free: 109.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/12.71, allocations: 109.7 kB / 2.485 GB, free: 109.9 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001568/12.71, allocations: 209.4 kB / 2.485 GB, free: 109.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01445/12.73, allocations: 4.852 MB / 2.49 GB, free: 109.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01537/12.74, allocations: 4.882 MB / 2.495 GB, free: 109.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001191/12.74, allocations: 8.031 kB / 2.495 GB, free: 109.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008463/12.74, allocations: 9.312 kB / 2.495 GB, free: 109.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.921e-05/12.74, allocations: 84.19 kB / 2.495 GB, free: 109.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07014/12.81, allocations: 22.25 MB / 2.517 GB, free: 99.39 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01035/12.82, allocations: 2.668 MB / 2.519 GB, free: 99.34 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005688/12.83, allocations: 1.71 MB / 2.521 GB, free: 99.33 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02746/12.86, allocations: 6.793 MB / 2.528 GB, free: 97.13 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004907/12.86, allocations: 1.749 MB / 2.529 GB, free: 97.07 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=156): time 1.016e-05/12.86, allocations: 3 kB / 2.529 GB, free: 97.07 MB / 0.8542 GB Notification: Performance of matching and sorting (n=156): time 0.04464/12.91, allocations: 6.172 MB / 2.535 GB, free: 96.74 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/12.91, allocations: 149.2 kB / 2.536 GB, free: 96.59 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/12.92, allocations: 4.056 MB / 2.54 GB, free: 96.27 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0008139/12.92, allocations: 33.64 kB / 2.54 GB, free: 96.23 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.002848/12.92, allocations: 1.609 MB / 2.541 GB, free: 95.38 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.002532/12.93, allocations: 0.5389 MB / 2.542 GB, free: 95.04 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004177/12.93, allocations: 2.781 kB / 2.542 GB, free: 95.04 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002132/12.93, allocations: 415.1 kB / 2.542 GB, free: 94.73 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003913/12.93, allocations: 1.559 MB / 2.544 GB, free: 94.72 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/12.94, allocations: 2.832 MB / 2.546 GB, free: 93.15 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009516/12.94, allocations: 2.152 MB / 2.548 GB, free: 93.12 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.903e-05/12.94, allocations: 11.06 kB / 2.549 GB, free: 93.12 MB / 0.8542 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.1509/13.1, allocations: 11.8 MB / 2.56 GB, free: 92.76 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.005052/13.1, allocations: 15.01 MB / 2.575 GB, free: 77.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002417/13.1, allocations: 34.53 kB / 2.575 GB, free: 77.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2291/13.33, allocations: 10.74 MB / 2.585 GB, free: 76.99 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00586/13.34, allocations: 0.6975 MB / 2.586 GB, free: 76.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02402/13.36, allocations: 5.846 MB / 2.592 GB, free: 75.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/13.37, allocations: 451.7 kB / 2.592 GB, free: 75.24 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/13.37, allocations: 195 kB / 2.592 GB, free: 75.24 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/13.37, allocations: 11.03 kB / 2.592 GB, free: 75.24 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.157/13.53, allocations: 11.08 MB / 2.603 GB, free: 72.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/13.53, allocations: 38.42 kB / 2.603 GB, free: 72.87 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1615/13.69, allocations: 10.7 MB / 2.614 GB, free: 62.62 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/13.7, allocations: 0.6902 MB / 2.614 GB, free: 61.93 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0365/13.73, allocations: 8.318 MB / 2.622 GB, free: 53.37 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008933/13.74, allocations: 377.8 kB / 2.623 GB, free: 53 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/13.74, allocations: 191.8 kB / 2.623 GB, free: 52.81 MB / 0.8542 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001603/13.75, allocations: 213.7 kB / 2.623 GB, free: 52.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001837/13.75, allocations: 430.7 kB / 2.623 GB, free: 52.17 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01579/13.76, allocations: 4.403 MB / 2.628 GB, free: 47.81 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.909e-05/13.76, allocations: 16 kB / 2.628 GB, free: 47.79 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/13.76, allocations: 3.719 kB / 2.628 GB, free: 47.79 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01223/13.78, allocations: 4.822 MB / 2.633 GB, free: 42.74 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05506/13.83, allocations: 10.22 MB / 2.642 GB, free: 32.51 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.449e-05/13.83, allocations: 4.031 kB / 2.643 GB, free: 32.51 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004777/13.84, allocations: 423.5 kB / 2.643 GB, free: 32.09 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01377/13.85, allocations: 1.862 MB / 2.645 GB, free: 30.25 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001173/13.85, allocations: 31.95 kB / 2.645 GB, free: 30.22 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02218/13.87, allocations: 3.548 MB / 2.648 GB, free: 26.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/13.87, allocations: 3.281 kB / 2.648 GB, free: 26.6 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02353/13.9, allocations: 6.683 MB / 2.655 GB, free: 19.91 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02595/13.92, allocations: 9.454 MB / 2.664 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004855/13.93, allocations: 1.01 MB / 2.665 GB, free: 9.406 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002245/13.93, allocations: 7.906 kB / 2.665 GB, free: 9.398 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007762/13.94, allocations: 223.3 kB / 2.665 GB, free: 9.18 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007162/13.94, allocations: 109.8 kB / 2.665 GB, free: 9.074 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004967/13.94, allocations: 87.83 kB / 2.665 GB, free: 8.984 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.007667/13.95, allocations: 3.064 MB / 2.668 GB, free: 5.93 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.01751/13.96, allocations: 3.01 MB / 2.671 GB, free: 2.914 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003359/13.97, allocations: 1.215 MB / 2.672 GB, free: 1.816 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.4238/14.39, allocations: 7.096 MB / 2.679 GB, free: 190.1 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.921e-05/14.39, allocations: 0.6562 kB / 2.679 GB, free: 190.1 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0105/14.4, allocations: 2.1 MB / 2.681 GB, free: 190 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02231/14.42, allocations: 2.318 MB / 2.684 GB, free: 190 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/14.45, allocations: 7.779 MB / 2.691 GB, free: 188.6 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008286/14.46, allocations: 3.725 MB / 2.695 GB, free: 187.8 MB / 0.8542 GB Notification: Performance of SimCode: time 2.305e-06/14.46, allocations: 0 / 2.695 GB, free: 187.8 MB / 0.8542 GB