Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.025/1.025, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 16 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07682/0.07717, allocations: 25.16 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.889/3.966, allocations: 1.248 GB / 1.428 GB, free: 33.86 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/3.966, allocations: 79.03 kB / 1.428 GB, free: 33.82 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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.715/6.682, allocations: 459.1 MB / 1.877 GB, free: 26.65 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.857e-06/6.682, allocations: 0 / 1.877 GB, free: 26.65 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001651/6.682, allocations: 36.84 kB / 1.877 GB, free: 26.64 MB / 282.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.01367/6.696, allocations: 3.117 MB / 1.88 GB, free: 25.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/6.696, allocations: 13.19 kB / 1.88 GB, free: 25.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/6.697, allocations: 175 kB / 1.88 GB, free: 25.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/6.7, allocations: 0.9372 MB / 1.881 GB, free: 24.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003267/6.701, allocations: 202.3 kB / 1.881 GB, free: 24.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005453/6.701, allocations: 122.7 kB / 1.881 GB, free: 24.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005991/6.707, allocations: 1.878 MB / 1.883 GB, free: 24.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/6.707, allocations: 9.672 kB / 1.883 GB, free: 24.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003329/6.708, allocations: 52.64 kB / 1.883 GB, free: 24.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/6.708, allocations: 77.61 kB / 1.883 GB, free: 24.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006673/6.714, allocations: 1.827 MB / 1.885 GB, free: 24.3 MB / 282.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.01912/6.734, allocations: 7.412 MB / 1.892 GB, free: 20.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003811/6.737, allocations: 1.148 MB / 1.893 GB, free: 20.55 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001916/6.739, allocations: 1.722 MB / 1.895 GB, free: 18.67 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/6.74, allocations: 45.22 kB / 1.895 GB, free: 18.63 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001133/6.741, allocations: 123.9 kB / 1.895 GB, free: 18.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=100): time 4.769e-06/6.741, allocations: 0 / 1.895 GB, free: 18.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.03306/6.774, allocations: 5.726 MB / 1.901 GB, free: 17.92 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/6.774, allocations: 167.5 kB / 1.901 GB, free: 17.73 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.002027/6.776, allocations: 1.042 MB / 1.902 GB, free: 17.56 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004091/6.776, allocations: 50.77 kB / 1.902 GB, free: 17.53 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005159/6.777, allocations: 0.6433 MB / 1.902 GB, free: 17.15 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000531/6.777, allocations: 400.5 kB / 1.903 GB, free: 16.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/6.778, allocations: 31.31 kB / 1.903 GB, free: 16.9 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002018/6.778, allocations: 370.1 kB / 1.903 GB, free: 16.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/6.78, allocations: 0.7018 MB / 1.904 GB, free: 16.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002714/6.783, allocations: 1.179 MB / 1.905 GB, free: 16.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002935/6.786, allocations: 0.9197 MB / 1.906 GB, free: 15.96 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/6.786, allocations: 3.531 kB / 1.906 GB, free: 15.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.009538/6.796, allocations: 2.388 MB / 1.908 GB, free: 15.78 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/6.796, allocations: 73.41 kB / 1.908 GB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/6.796, allocations: 14.75 kB / 1.908 GB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00493/6.801, allocations: 0.5464 MB / 1.909 GB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/6.804, allocations: 347.3 kB / 1.909 GB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003273/6.807, allocations: 1.552 MB / 1.911 GB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002914/6.81, allocations: 148.8 kB / 1.911 GB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004513/6.81, allocations: 91.44 kB / 1.911 GB, free: 14.66 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.00145/6.812, allocations: 431.7 kB / 1.911 GB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004426/6.812, allocations: 126.4 kB / 1.911 GB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007067/6.819, allocations: 2.034 MB / 1.913 GB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/6.819, allocations: 13.83 kB / 1.913 GB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/6.819, allocations: 0 / 1.913 GB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.43e-05/6.819, allocations: 10.61 kB / 1.914 GB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01391/6.833, allocations: 3.794 MB / 1.917 GB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/6.833, allocations: 7.828 kB / 1.917 GB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/6.836, allocations: 222.7 kB / 1.917 GB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/6.839, allocations: 399 kB / 1.918 GB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003449/6.839, allocations: 44.56 kB / 1.918 GB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/6.842, allocations: 0.8971 MB / 1.919 GB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/6.842, allocations: 6.312 kB / 1.919 GB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008154/6.85, allocations: 2.656 MB / 1.921 GB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/6.851, allocations: 384.3 kB / 1.922 GB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004519/6.852, allocations: 35.06 kB / 1.922 GB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/6.854, allocations: 97.7 kB / 1.922 GB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/6.854, allocations: 80.31 kB / 1.922 GB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000217/6.854, allocations: 67.06 kB / 1.922 GB, free: 12.9 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001472/6.856, allocations: 0.6974 MB / 1.923 GB, free: 12.79 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.31e-07/6.856, allocations: 0 / 1.923 GB, free: 12.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.005525/6.861, allocations: 1.053 MB / 1.924 GB, free: 12.62 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.007326/6.869, allocations: 1.962 MB / 1.926 GB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006492/6.875, allocations: 1.798 MB / 1.927 GB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/6.875, allocations: 4.062 kB / 1.927 GB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002762/6.878, allocations: 0.7815 MB / 1.928 GB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005383/6.883, allocations: 0.5724 MB / 1.929 GB, free: 11.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009267/6.893, allocations: 3.643 MB / 1.932 GB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/6.894, allocations: 1.301 MB / 1.933 GB, free: 9.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/6.895, allocations: 155.4 kB / 1.934 GB, free: 9.535 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/6.895, allocations: 0 / 1.934 GB, free: 9.535 MB / 282.7 MB Notification: Performance of Templates: time 0.3623/7.258, allocations: 42.6 MB / 1.975 GB, free: 21.75 MB / 282.7 MB