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 0.9655/0.9655, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.302e-05/2.317e-05, allocations: 0 / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 25.15 MB / 179.4 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.951/3.092, allocations: 1.248 GB / 1.424 GB, free: 52.74 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/3.093, allocations: 73.8 kB / 1.424 GB, free: 52.74 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.1/5.193, allocations: 457.6 MB / 1.871 GB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.134e-06/5.193, allocations: 0 / 1.871 GB, free: 13.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001162/5.193, allocations: 33.34 kB / 1.871 GB, free: 13.57 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.009311/5.202, allocations: 2.977 MB / 1.874 GB, free: 11.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/5.202, allocations: 10.88 kB / 1.874 GB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007991/5.203, allocations: 172.1 kB / 1.874 GB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/5.206, allocations: 0.9295 MB / 1.875 GB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002797/5.206, allocations: 208.2 kB / 1.875 GB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004319/5.207, allocations: 127.9 kB / 1.875 GB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00386/5.21, allocations: 1.796 MB / 1.877 GB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/5.21, allocations: 7.938 kB / 1.877 GB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/5.211, allocations: 56 kB / 1.877 GB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/5.211, allocations: 73.75 kB / 1.877 GB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003587/5.214, allocations: 1.722 MB / 1.878 GB, free: 7.168 MB / 266.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01317/5.228, allocations: 7.419 MB / 1.886 GB, free: 316 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003183/5.231, allocations: 1.083 MB / 1.887 GB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/5.232, allocations: 0.5815 MB / 1.887 GB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/5.235, allocations: 1.73 MB / 1.889 GB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/5.235, allocations: 43.56 kB / 1.889 GB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009599/5.236, allocations: 122.8 kB / 1.889 GB, free: 12.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=100): time 5.359e-06/5.236, allocations: 0 / 1.889 GB, free: 12.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.02161/5.257, allocations: 4.861 MB / 1.894 GB, free: 7.453 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/5.257, allocations: 167.2 kB / 1.894 GB, free: 7.254 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.001951/5.259, allocations: 0.908 MB / 1.895 GB, free: 6.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/5.26, allocations: 49.7 kB / 1.895 GB, free: 6.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006098/5.26, allocations: 0.6451 MB / 1.896 GB, free: 5.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005823/5.261, allocations: 394.4 kB / 1.896 GB, free: 5.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/5.261, allocations: 32 kB / 1.896 GB, free: 5.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002331/5.261, allocations: 366.8 kB / 1.896 GB, free: 4.832 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/5.263, allocations: 0.6365 MB / 1.897 GB, free: 4.195 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/5.265, allocations: 1.11 MB / 1.898 GB, free: 2.879 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/5.267, allocations: 0.8589 MB / 1.899 GB, free: 2.012 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/5.267, allocations: 4 kB / 1.899 GB, free: 2.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.1994/5.467, allocations: 2.223 MB / 1.901 GB, free: 26.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.49e-05/5.467, allocations: 68.12 kB / 1.901 GB, free: 26.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/5.467, allocations: 14.92 kB / 1.901 GB, free: 26.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/5.47, allocations: 473 kB / 1.902 GB, free: 26.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/5.472, allocations: 350.1 kB / 1.902 GB, free: 26.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/5.473, allocations: 1.436 MB / 1.903 GB, free: 25.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/5.475, allocations: 143.4 kB / 1.904 GB, free: 25.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/5.476, allocations: 93.73 kB / 1.904 GB, free: 25.46 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: volume.mC[1]:VARIABLE(min = 0.0 unit = "kg" ) "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 () * 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.0005217/5.476, allocations: 204.6 kB / 1.904 GB, free: 25.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/5.477, allocations: 130.8 kB / 1.904 GB, free: 25.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004801/5.481, allocations: 1.884 MB / 1.906 GB, free: 25.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/5.482, allocations: 13.59 kB / 1.906 GB, free: 25.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.739e-06/5.482, allocations: 1.219 kB / 1.906 GB, free: 25.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/5.482, allocations: 5.672 kB / 1.906 GB, free: 25.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007582/5.489, allocations: 3.306 MB / 1.909 GB, free: 24.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.553e-06/5.489, allocations: 1.531 kB / 1.909 GB, free: 24.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/5.491, allocations: 216.6 kB / 1.909 GB, free: 24.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/5.492, allocations: 313.3 kB / 1.91 GB, free: 24.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000223/5.493, allocations: 43.34 kB / 1.91 GB, free: 24.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009373/5.494, allocations: 0.7841 MB / 1.91 GB, free: 24.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.259e-06/5.494, allocations: 6.812 kB / 1.91 GB, free: 24.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/5.499, allocations: 2.522 MB / 1.913 GB, free: 24.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/5.5, allocations: 383.5 kB / 1.913 GB, free: 23.89 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/5.5, allocations: 36.23 kB / 1.913 GB, free: 23.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/5.502, allocations: 100 kB / 1.913 GB, free: 23.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/5.502, allocations: 77.88 kB / 1.913 GB, free: 23.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/5.503, allocations: 64.08 kB / 1.913 GB, free: 23.89 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001245/5.504, allocations: 0.6905 MB / 1.914 GB, free: 23.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.57e-07/5.504, allocations: 5.422 kB / 1.914 GB, free: 23.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004163/5.508, allocations: 1.051 MB / 1.915 GB, free: 23.77 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 () * 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.005051/5.513, allocations: 1.959 MB / 1.917 GB, free: 23.56 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003973/5.517, allocations: 1.681 MB / 1.919 GB, free: 23.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.581e-06/5.517, allocations: 2.531 kB / 1.919 GB, free: 23.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001658/5.519, allocations: 0.7204 MB / 1.919 GB, free: 23.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003923/5.523, allocations: 0.5688 MB / 1.92 GB, free: 23.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/5.529, allocations: 2.438 MB / 1.922 GB, free: 22.92 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009477/5.53, allocations: 1.301 MB / 1.924 GB, free: 22.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009166/5.531, allocations: 156.8 kB / 1.924 GB, free: 22.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.755e-06/5.531, allocations: 0 / 1.924 GB, free: 22.2 MB / 282.7 MB Notification: Performance of Templates: time 0.06601/5.597, allocations: 42.53 MB / 1.965 GB, free: 19.21 MB / 282.7 MB