Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.05/1.05, allocations: 111.2 MB / 126.7 MB, free: 6.117 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002662, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04811/0.0484, allocations: 25.17 MB / 183.5 MB, free: 5.969 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.073/3.122, allocations: 1.248 GB / 1.428 GB, free: 33.42 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/3.122, allocations: 69.59 kB / 1.428 GB, free: 33.39 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if boundary4.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if freshAir.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if volume.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if peopleSource.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 2.262/5.384, allocations: 459.1 MB / 1.876 GB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.13e-06/5.384, allocations: 2.656 kB / 1.876 GB, free: 10.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001079/5.384, allocations: 31.06 kB / 1.876 GB, free: 10.52 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 308 * Number of variables: 308 Notification: Performance of Generate backend data structure: time 0.009889/5.394, allocations: 3.119 MB / 1.879 GB, free: 9.004 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/5.394, allocations: 8.969 kB / 1.879 GB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007553/5.395, allocations: 175.6 kB / 1.879 GB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/5.398, allocations: 0.9439 MB / 1.88 GB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/5.398, allocations: 197.7 kB / 1.88 GB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000377/5.398, allocations: 122.5 kB / 1.881 GB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004963/5.403, allocations: 1.875 MB / 1.882 GB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.221e-05/5.404, allocations: 0 / 1.882 GB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/5.404, allocations: 53.56 kB / 1.882 GB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/5.404, allocations: 76.5 kB / 1.882 GB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004616/5.409, allocations: 1.818 MB / 1.884 GB, free: 8.203 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/5.423, allocations: 7.426 MB / 1.891 GB, free: 20.49 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00301/5.426, allocations: 1.146 MB / 1.893 GB, free: 20.44 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001671/5.428, allocations: 1.73 MB / 1.894 GB, free: 18.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/5.428, allocations: 46.25 kB / 1.894 GB, free: 18.53 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00094/5.429, allocations: 126.8 kB / 1.894 GB, free: 18.46 MB / 282.7 MB Notification: Performance of pre-optimization done (n=100): time 4.499e-06/5.429, allocations: 0.7188 kB / 1.894 GB, free: 18.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.02409/5.453, allocations: 5.717 MB / 1.9 GB, free: 17.81 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/5.453, allocations: 173.6 kB / 1.9 GB, free: 17.62 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Blocks/Continuous.mo:858:5-861:73:writable] Warning: Parameter PID.Td has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/5.455, allocations: 0.9178 MB / 1.901 GB, free: 17.46 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003661/5.455, allocations: 51.97 kB / 1.901 GB, free: 17.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/5.456, allocations: 0.644 MB / 1.902 GB, free: 17.05 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/5.456, allocations: 395 kB / 1.902 GB, free: 16.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/5.456, allocations: 35.56 kB / 1.902 GB, free: 16.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002233/5.457, allocations: 368.9 kB / 1.903 GB, free: 16.49 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/5.459, allocations: 0.7017 MB / 1.903 GB, free: 16.49 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/5.461, allocations: 1.175 MB / 1.904 GB, free: 15.94 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/5.463, allocations: 0.9175 MB / 1.905 GB, free: 15.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/5.463, allocations: 3.938 kB / 1.905 GB, free: 15.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.007181/5.47, allocations: 2.393 MB / 1.908 GB, free: 15.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/5.471, allocations: 71.2 kB / 1.908 GB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.974e-05/5.471, allocations: 15.41 kB / 1.908 GB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003183/5.474, allocations: 0.5443 MB / 1.908 GB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/5.476, allocations: 346.8 kB / 1.909 GB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/5.479, allocations: 1.549 MB / 1.91 GB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/5.481, allocations: 144.9 kB / 1.91 GB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003042/5.481, allocations: 98.56 kB / 1.91 GB, free: 14.56 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: volume.mC[1]:VARIABLE(min = 0.0 unit = "kg" fixed = true ) "Masses of trace substances in the fluid" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 3 (traceVolume.ind,traceSource.ind,NumberOfPeople.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001121/5.482, allocations: 425.3 kB / 1.911 GB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003215/5.483, allocations: 133.9 kB / 1.911 GB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005452/5.488, allocations: 2.028 MB / 1.913 GB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/5.488, allocations: 13.06 kB / 1.913 GB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.964e-06/5.488, allocations: 5.031 kB / 1.913 GB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/5.488, allocations: 7.781 kB / 1.913 GB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/5.499, allocations: 3.794 MB / 1.917 GB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/5.499, allocations: 3.156 kB / 1.917 GB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/5.501, allocations: 216.9 kB / 1.917 GB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/5.503, allocations: 402.1 kB / 1.917 GB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002808/5.503, allocations: 41.64 kB / 1.917 GB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001808/5.505, allocations: 0.8996 MB / 1.918 GB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.497e-06/5.505, allocations: 1.844 kB / 1.918 GB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0065/5.512, allocations: 2.725 MB / 1.921 GB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/5.513, allocations: 384.7 kB / 1.921 GB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000326/5.513, allocations: 32.89 kB / 1.921 GB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/5.515, allocations: 102.5 kB / 1.921 GB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/5.515, allocations: 71.56 kB / 1.921 GB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/5.515, allocations: 68.47 kB / 1.921 GB, free: 12.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001246/5.516, allocations: 0.7017 MB / 1.922 GB, free: 12.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.46e-07/5.516, allocations: 0 / 1.922 GB, free: 12.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004113/5.521, allocations: 1.06 MB / 1.923 GB, free: 12.44 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC[1],PID.I.y) * Number of discrete variables: 1 (NumberOfPeople.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004656/5.525, allocations: 1.96 MB / 1.925 GB, free: 11.97 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004655/5.53, allocations: 1.795 MB / 1.927 GB, free: 11.78 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.613e-06/5.53, allocations: 0 / 1.927 GB, free: 11.78 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001994/5.532, allocations: 0.7904 MB / 1.928 GB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/5.536, allocations: 0.5723 MB / 1.928 GB, free: 11.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007112/5.543, allocations: 3.633 MB / 1.932 GB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/5.544, allocations: 1.295 MB / 1.933 GB, free: 9.418 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008767/5.545, allocations: 161.9 kB / 1.933 GB, free: 9.406 MB / 282.7 MB Notification: Performance of SimCode: time 1.833e-06/5.545, allocations: 0 / 1.933 GB, free: 9.406 MB / 282.7 MB Notification: Performance of Templates: time 0.2715/5.816, allocations: 42.95 MB / 1.975 GB, free: 21.86 MB / 282.7 MB