Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.874/3.874, allocations: 433 MB / 440.3 MB, free: 4.793 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.542/4.416, allocations: 104.3 MB / 0.5319 GB, free: 13.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/4.649, allocations: 98.72 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.279/9.929, allocations: 2.247 GB / 2.875 GB, free: 102.8 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003658/9.929, allocations: 96.62 kB / 2.875 GB, free: 102.7 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 9.649/19.58, allocations: 1.986 GB / 4.862 GB, free: 55.75 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/19.58, allocations: 8 kB / 4.862 GB, free: 55.74 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/19.59, allocations: 0.9852 MB / 4.863 GB, free: 54.75 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/19.6, allocations: 2.49 MB / 4.865 GB, free: 52.24 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/19.6, allocations: 172.9 kB / 4.865 GB, free: 52.06 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001461/19.6, allocations: 183.8 kB / 4.865 GB, free: 51.88 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009638/19.61, allocations: 2.545 MB / 4.868 GB, free: 49.33 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/19.62, allocations: 2.846 MB / 4.871 GB, free: 46.41 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000157/19.62, allocations: 8 kB / 4.871 GB, free: 46.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00103/19.62, allocations: 4 kB / 4.871 GB, free: 46.39 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/19.62, allocations: 108 kB / 4.871 GB, free: 46.29 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02902/19.65, allocations: 13.23 MB / 4.884 GB, free: 32.11 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00468/19.66, allocations: 1.747 MB / 4.885 GB, free: 30.37 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002526/19.66, allocations: 1.048 MB / 4.886 GB, free: 29.31 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007259/19.66, allocations: 329.2 kB / 4.887 GB, free: 28.94 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/19.66, allocations: 60.56 kB / 4.887 GB, free: 28.87 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=186): time 5.12e-06/19.66, allocations: 0 / 4.887 GB, free: 28.87 MB / 0.8855 GB Notification: Performance of matching and sorting (n=186): time 0.007613/19.67, allocations: 1.967 MB / 4.889 GB, free: 26.89 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/19.67, allocations: 73.41 kB / 4.889 GB, free: 26.81 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003416/19.67, allocations: 1.431 MB / 4.89 GB, free: 25.35 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0006609/19.67, allocations: 29.7 kB / 4.89 GB, free: 25.32 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000744/19.67, allocations: 0.9958 MB / 4.891 GB, free: 24.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001462/19.67, allocations: 0.6333 MB / 4.892 GB, free: 23.66 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/19.68, allocations: 4 kB / 4.892 GB, free: 23.66 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001789/19.68, allocations: 382 kB / 4.892 GB, free: 23.28 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/19.68, allocations: 0.7694 MB / 4.893 GB, free: 22.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002775/19.68, allocations: 1.377 MB / 4.894 GB, free: 20.86 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002903/19.68, allocations: 1.046 MB / 4.895 GB, free: 19.82 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/19.68, allocations: 7.75 kB / 4.895 GB, free: 19.82 MB / 0.8855 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.006975/19.69, allocations: 2.326 MB / 4.897 GB, free: 17.48 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001107/19.69, allocations: 5.185 MB / 4.903 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.848e-05/19.69, allocations: 12 kB / 4.903 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.885e-05/19.69, allocations: 28 kB / 4.903 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00525/19.7, allocations: 0.5225 MB / 4.903 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/19.7, allocations: 4.2 MB / 4.907 GB, free: 6.836 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006591/19.71, allocations: 326 kB / 4.907 GB, free: 6.516 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009943/19.71, allocations: 87.98 kB / 4.908 GB, free: 6.43 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/19.71, allocations: 5.719 kB / 4.908 GB, free: 6.426 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007031/19.71, allocations: 2.027 MB / 4.91 GB, free: 4.398 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.105e-05/19.71, allocations: 16.22 kB / 4.91 GB, free: 4.383 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.011e-05/19.71, allocations: 28 kB / 4.91 GB, free: 4.355 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004082/19.72, allocations: 467.3 kB / 4.91 GB, free: 3.898 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.501e-05/19.72, allocations: 38.27 kB / 4.91 GB, free: 3.863 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006237/19.72, allocations: 306.2 kB / 4.91 GB, free: 3.562 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006483/19.73, allocations: 91.98 kB / 4.91 GB, free: 3.473 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007546/19.73, allocations: 164.2 kB / 4.911 GB, free: 3.309 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/19.73, allocations: 264.9 kB / 4.911 GB, free: 3.047 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00572/19.73, allocations: 1.965 MB / 4.913 GB, free: 1.074 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.246e-05/19.73, allocations: 16 kB / 4.913 GB, free: 1.059 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/19.73, allocations: 4 kB / 4.913 GB, free: 1.055 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004317/19.74, allocations: 1.786 MB / 4.915 GB, free: 15.22 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01641/19.75, allocations: 4.759 MB / 4.919 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/19.75, allocations: 0 / 4.919 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00547/19.76, allocations: 0.515 MB / 4.92 GB, free: 9.863 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.893e-05/19.76, allocations: 15.91 kB / 4.92 GB, free: 9.848 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004406/19.76, allocations: 27.98 kB / 4.92 GB, free: 9.82 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/19.76, allocations: 4.153 MB / 4.924 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/19.76, allocations: 0 / 4.924 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009699/19.77, allocations: 3.481 MB / 4.927 GB, free: 1.883 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.4462/20.22, allocations: 5.315 MB / 4.932 GB, free: 147.7 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002775/20.22, allocations: 0.574 MB / 4.933 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/20.22, allocations: 19 kB / 4.933 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005503/20.23, allocations: 227.1 kB / 4.933 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006073/20.23, allocations: 105.8 kB / 4.933 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003215/20.23, allocations: 81.62 kB / 4.933 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.002991/20.23, allocations: 1.062 MB / 4.934 GB, free: 147.5 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.01603/20.25, allocations: 3.198 MB / 4.938 GB, free: 147.5 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01101/20.26, allocations: 5.236 MB / 4.943 GB, free: 145.3 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.01119/20.27, allocations: 3.411 MB / 4.946 GB, free: 145 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/20.27, allocations: 6.594 kB / 4.946 GB, free: 145 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.003557/20.27, allocations: 1.005 MB / 4.947 GB, free: 145 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01422/20.29, allocations: 1.394 MB / 4.948 GB, free: 145 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01802/20.31, allocations: 5.527 MB / 4.954 GB, free: 143.9 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006291/20.31, allocations: 2.537 MB / 4.956 GB, free: 143.1 MB / 0.9011 GB Notification: Performance of SimCode: time 2.334e-06/20.31, allocations: 0 / 4.956 GB, free: 143.1 MB / 0.9011 GB