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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9709/0.9709, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.464e-05/1.475e-05, allocations: 0 / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04704/0.04708, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.821/2.869, allocations: 1.248 GB / 1.417 GB, free: 23.32 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000183/2.869, allocations: 71.95 kB / 1.417 GB, free: 23.25 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.283/5.152, allocations: 452.5 MB / 1.859 GB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.302e-06/5.152, allocations: 0 / 1.859 GB, free: 15.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001178/5.152, allocations: 38.75 kB / 1.859 GB, free: 15.98 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.01013/5.162, allocations: 2.971 MB / 1.862 GB, free: 14.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/5.162, allocations: 8.719 kB / 1.862 GB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000863/5.163, allocations: 175.7 kB / 1.862 GB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/5.166, allocations: 0.9358 MB / 1.863 GB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/5.166, allocations: 151.5 kB / 1.863 GB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004785/5.166, allocations: 72.72 kB / 1.863 GB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004049/5.17, allocations: 1.565 MB / 1.865 GB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004196/5.175, allocations: 1.618 MB / 1.866 GB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.473e-05/5.175, allocations: 1.781 kB / 1.866 GB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002608/5.175, allocations: 6.969 kB / 1.866 GB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/5.175, allocations: 70.69 kB / 1.866 GB, free: 13.75 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.01394/5.189, allocations: 7.221 MB / 1.873 GB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/5.192, allocations: 1.009 MB / 1.874 GB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/5.193, allocations: 0.5376 MB / 1.875 GB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/5.194, allocations: 1.728 MB / 1.877 GB, free: 8.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/5.194, allocations: 50.28 kB / 1.877 GB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008901/5.195, allocations: 88.64 kB / 1.877 GB, free: 8.074 MB / 266.7 MB Notification: Performance of pre-optimization done (n=99): time 5.332e-06/5.195, allocations: 0 / 1.877 GB, free: 8.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=111): time 0.01936/5.215, allocations: 4.43 MB / 1.881 GB, free: 7.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/5.215, allocations: 174.5 kB / 1.881 GB, free: 7.312 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.001429/5.216, allocations: 0.7479 MB / 1.882 GB, free: 7.152 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003174/5.216, allocations: 28.98 kB / 1.882 GB, free: 7.121 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/5.217, allocations: 0.6655 MB / 1.883 GB, free: 6.711 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004714/5.217, allocations: 377.2 kB / 1.883 GB, free: 6.469 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/5.217, allocations: 3.781 kB / 1.883 GB, free: 6.469 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/5.218, allocations: 367.3 kB / 1.883 GB, free: 6.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/5.219, allocations: 0.6066 MB / 1.884 GB, free: 6.152 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/5.22, allocations: 1.071 MB / 1.885 GB, free: 5.613 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/5.224, allocations: 0.9068 MB / 1.886 GB, free: 5.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.077e-05/5.224, allocations: 4.688 kB / 1.886 GB, free: 5.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0109/5.235, allocations: 2.529 MB / 1.888 GB, free: 5.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.358e-05/5.235, allocations: 71.53 kB / 1.888 GB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.007e-05/5.235, allocations: 17.22 kB / 1.888 GB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/5.237, allocations: 436.5 kB / 1.889 GB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/5.239, allocations: 346.2 kB / 1.889 GB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/5.241, allocations: 1.474 MB / 1.891 GB, free: 20.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/5.243, allocations: 111.8 kB / 1.891 GB, free: 20.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003988/5.244, allocations: 94.16 kB / 1.891 GB, free: 20.35 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.0005213/5.244, allocations: 158.3 kB / 1.891 GB, free: 20.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/5.245, allocations: 118.6 kB / 1.891 GB, free: 20.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/5.25, allocations: 1.824 MB / 1.893 GB, free: 20.03 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/5.25, allocations: 11.41 kB / 1.893 GB, free: 20.03 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/5.25, allocations: 8.922 kB / 1.893 GB, free: 20.03 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/5.25, allocations: 5.953 kB / 1.893 GB, free: 20.03 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007628/5.258, allocations: 3.057 MB / 1.896 GB, free: 19.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.719e-06/5.258, allocations: 0 / 1.896 GB, free: 19.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/5.259, allocations: 208.8 kB / 1.896 GB, free: 19.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/5.261, allocations: 311.5 kB / 1.896 GB, free: 19.61 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/5.261, allocations: 24.44 kB / 1.896 GB, free: 19.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/5.262, allocations: 0.8125 MB / 1.897 GB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.748e-06/5.262, allocations: 2.875 kB / 1.897 GB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00574/5.268, allocations: 2.396 MB / 1.9 GB, free: 18.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/5.269, allocations: 358.3 kB / 1.9 GB, free: 18.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/5.269, allocations: 17.48 kB / 1.9 GB, free: 18.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/5.271, allocations: 79.81 kB / 1.9 GB, free: 18.54 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/5.271, allocations: 76.34 kB / 1.9 GB, free: 18.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/5.271, allocations: 64.8 kB / 1.9 GB, free: 18.54 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001045/5.272, allocations: 0.5768 MB / 1.901 GB, free: 18.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.034e-06/5.272, allocations: 0 / 1.901 GB, free: 18.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004419/5.277, allocations: 0.973 MB / 1.902 GB, free: 18.26 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 (112): * Single equations (assignments): 110 * 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.005533/5.282, allocations: 2.121 MB / 1.904 GB, free: 17.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003634/5.286, allocations: 1.572 MB / 1.905 GB, free: 17.67 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/5.286, allocations: 0 / 1.905 GB, free: 17.67 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/5.287, allocations: 0.6566 MB / 1.906 GB, free: 17.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/5.291, allocations: 0.4912 MB / 1.906 GB, free: 17.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/5.296, allocations: 2.318 MB / 1.909 GB, free: 17.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/5.297, allocations: 1.3 MB / 1.91 GB, free: 16.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008731/5.298, allocations: 148.4 kB / 1.91 GB, free: 16.28 MB / 282.7 MB Notification: Performance of SimCode: time 1.943e-06/5.298, allocations: 4 kB / 1.91 GB, free: 16.27 MB / 282.7 MB Notification: Performance of Templates: time 0.2644/5.563, allocations: 41.46 MB / 1.951 GB, free: 23.78 MB / 282.7 MB