Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",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.9/3.9, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5424/4.443, allocations: 104.3 MB / 0.5319 GB, free: 13.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/4.696, allocations: 98.72 MB / 0.6283 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/4.959, allocations: 130.1 MB / 0.7554 GB, free: 7.469 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003774/4.959, allocations: 91.58 kB / 0.7555 GB, free: 7.383 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.09081/5.05, allocations: 15.59 MB / 0.7707 GB, free: 7.703 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/5.05, allocations: 8 kB / 0.7707 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004371/5.05, allocations: 98.88 kB / 0.7708 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/5.052, allocations: 0.6007 MB / 0.7714 GB, free: 6.953 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.157e-05/5.052, allocations: 20 kB / 0.7714 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/5.052, allocations: 39.91 kB / 0.7714 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001588/5.054, allocations: 430.6 kB / 0.7718 GB, free: 6.477 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/5.056, allocations: 0.6137 MB / 0.7724 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/5.056, allocations: 0 / 0.7724 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.707e-05/5.056, allocations: 7.984 kB / 0.7724 GB, free: 5.801 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/5.056, allocations: 12 kB / 0.7725 GB, free: 5.789 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006064/5.062, allocations: 2.547 MB / 0.7749 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/5.065, allocations: 0.5167 MB / 0.7754 GB, free: 2.633 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008402/5.065, allocations: 189.6 kB / 0.7756 GB, free: 2.445 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 8.151e-05/5.066, allocations: 8.359 kB / 0.7756 GB, free: 2.438 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007129/5.066, allocations: 256.5 kB / 0.7759 GB, free: 2.176 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 4.308e-06/5.066, allocations: 0 / 0.7759 GB, free: 2.176 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.001491/5.068, allocations: 434.9 kB / 0.7763 GB, free: 1.742 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/5.068, allocations: 222 kB / 0.7765 GB, free: 1.477 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/5.069, allocations: 471.6 kB / 0.777 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.000161/5.069, allocations: 25.7 kB / 0.777 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002994/5.07, allocations: 268.3 kB / 0.7772 GB, free: 0.7109 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/5.07, allocations: 153.8 kB / 0.7774 GB, free: 0.5586 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/5.07, allocations: 0 / 0.7774 GB, free: 0.5586 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.00021/5.07, allocations: 382.8 kB / 0.7777 GB, free: 180 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/5.071, allocations: 165 kB / 0.7779 GB, free: 12 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4035/5.474, allocations: 262.8 kB / 0.7782 GB, free: 99.61 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/5.475, allocations: 186.6 kB / 0.7783 GB, free: 99.61 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/5.475, allocations: 0 / 0.7783 GB, free: 99.61 MB / 0.6511 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001495/5.477, allocations: 487.1 kB / 0.7788 GB, free: 99.57 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/5.477, allocations: 366.1 kB / 0.7791 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/5.477, allocations: 0 / 0.7791 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/5.477, allocations: 3.656 kB / 0.7792 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/5.478, allocations: 159.7 kB / 0.7793 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/5.478, allocations: 6.656 kB / 0.7793 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/5.48, allocations: 115.3 kB / 0.7794 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.777e-05/5.48, allocations: 27.25 kB / 0.7794 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/5.48, allocations: 3.375 kB / 0.7794 GB, free: 99.21 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001087/5.481, allocations: 369 kB / 0.7798 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/5.481, allocations: 0 / 0.7798 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/5.481, allocations: 2.562 kB / 0.7798 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/5.482, allocations: 126.2 kB / 0.7799 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/5.482, allocations: 3.938 kB / 0.7799 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/5.483, allocations: 86.17 kB / 0.78 GB, free: 99.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/5.483, allocations: 17.03 kB / 0.78 GB, free: 99.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count,conMix.conFloRat.I.trigger_internal,conMix.conCoo.I.trigger_internal,conMix.conHea.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002649/5.483, allocations: 124 kB / 0.7801 GB, free: 99.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/5.483, allocations: 66.31 kB / 0.7802 GB, free: 99.09 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/5.485, allocations: 464.1 kB / 0.7807 GB, free: 99.04 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/5.485, allocations: 3.938 kB / 0.7807 GB, free: 99.04 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/5.485, allocations: 3.438 kB / 0.7807 GB, free: 99.04 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/5.485, allocations: 3.703 kB / 0.7807 GB, free: 99.04 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/5.486, allocations: 0.6509 MB / 0.7813 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/5.486, allocations: 0 / 0.7813 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/5.488, allocations: 150 kB / 0.7814 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/5.488, allocations: 2.438 kB / 0.7814 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/5.488, allocations: 9.422 kB / 0.7815 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/5.488, allocations: 0 / 0.7815 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/5.488, allocations: 2.781 kB / 0.7815 GB, free: 98.88 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001937/5.49, allocations: 0.7166 MB / 0.7822 GB, free: 98.76 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002584/5.492, allocations: 1.354 MB / 0.7835 GB, free: 98.28 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004627/5.493, allocations: 209 kB / 0.7837 GB, free: 98.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/5.493, allocations: 3.969 kB / 0.7837 GB, free: 98.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/5.494, allocations: 98.59 kB / 0.7838 GB, free: 98.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/5.494, allocations: 45.03 kB / 0.7838 GB, free: 98.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/5.494, allocations: 13.94 kB / 0.7838 GB, free: 98.14 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0006831/5.495, allocations: 367.5 kB / 0.7842 GB, free: 98.05 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002758/5.498, allocations: 231.5 kB / 0.7844 GB, free: 98.02 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (TRoo.count,m_flow.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002581/5.498, allocations: 113.4 kB / 0.7845 GB, free: 97.93 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001942/5.5, allocations: 0.7518 MB / 0.7852 GB, free: 97.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/5.5, allocations: 2.406 kB / 0.7852 GB, free: 97.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006053/5.501, allocations: 219.1 kB / 0.7855 GB, free: 97.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/5.502, allocations: 167 kB / 0.7856 GB, free: 97.79 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002982/5.505, allocations: 0.8831 MB / 0.7865 GB, free: 97.51 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009016/5.506, allocations: 0.9954 MB / 0.7874 GB, free: 96.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.452e-06/5.506, allocations: 0 / 0.7874 GB, free: 96.8 MB / 0.6511 GB