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.RoomCO2.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.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadModel(Modelica): time 1.01/1.01, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.72e-05/1.73e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04621/0.04624, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.713/2.76, allocations: 1.245 GB / 1.415 GB, free: 26.79 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/2.76, allocations: 75.95 kB / 1.415 GB, free: 26.71 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 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 boundary1.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 2.024/4.784, allocations: 415.2 MB / 1.82 GB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.889e-06/4.784, allocations: 0 / 1.82 GB, free: 13.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.742e-05/4.784, allocations: 27.7 kB / 1.82 GB, free: 13.73 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.009075/4.793, allocations: 2.521 MB / 1.823 GB, free: 11.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/4.793, allocations: 8.031 kB / 1.823 GB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005882/4.794, allocations: 110.8 kB / 1.823 GB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/4.796, allocations: 0.6791 MB / 1.823 GB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/4.796, allocations: 117.3 kB / 1.823 GB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002656/4.796, allocations: 48 kB / 1.823 GB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002862/4.799, allocations: 1.132 MB / 1.825 GB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00307/4.802, allocations: 1.179 MB / 1.826 GB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.06e-05/4.802, allocations: 0 / 1.826 GB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/4.803, allocations: 8 kB / 1.826 GB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/4.803, allocations: 61.97 kB / 1.826 GB, free: 7.719 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.01136/4.814, allocations: 5.541 MB / 1.831 GB, free: 1.848 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/4.816, allocations: 0.6878 MB / 1.832 GB, free: 1.145 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007945/4.817, allocations: 370.4 kB / 1.832 GB, free: 0.7812 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1834/5, allocations: 1.366 MB / 1.834 GB, free: 18.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/5, allocations: 42.91 kB / 1.834 GB, free: 18.55 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007218/5.001, allocations: 70.36 kB / 1.834 GB, free: 18.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=68): time 4.79e-06/5.001, allocations: 0 / 1.834 GB, free: 18.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.01786/5.019, allocations: 3.546 MB / 1.837 GB, free: 18.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/5.019, allocations: 115.9 kB / 1.837 GB, free: 18.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009884/5.02, allocations: 0.5265 MB / 1.838 GB, free: 17.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002407/5.02, allocations: 30.86 kB / 1.838 GB, free: 17.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/5.021, allocations: 0.5056 MB / 1.838 GB, free: 17.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000393/5.021, allocations: 279.5 kB / 1.839 GB, free: 17.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/5.021, allocations: 2.219 kB / 1.839 GB, free: 17.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/5.021, allocations: 357.8 kB / 1.839 GB, free: 17.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/5.022, allocations: 478.5 kB / 1.839 GB, free: 17.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/5.024, allocations: 0.8114 MB / 1.84 GB, free: 16.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/5.027, allocations: 0.7097 MB / 1.841 GB, free: 16.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.58e-05/5.027, allocations: 2.875 kB / 1.841 GB, free: 16.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.006771/5.034, allocations: 1.746 MB / 1.843 GB, free: 16.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.346e-05/5.034, allocations: 66.92 kB / 1.843 GB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/5.034, allocations: 11.67 kB / 1.843 GB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/5.036, allocations: 439.5 kB / 1.843 GB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/5.038, allocations: 260.1 kB / 1.843 GB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/5.039, allocations: 1.458 MB / 1.845 GB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/5.041, allocations: 89.06 kB / 1.845 GB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/5.042, allocations: 74.92 kB / 1.845 GB, free: 15.51 MB / 266.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: 50 * Number of states: 0 () * Number of discrete variables: 2 (traceVolume.ind,traceSource.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * 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.0004143/5.042, allocations: 148 kB / 1.845 GB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002712/5.042, allocations: 79.03 kB / 1.845 GB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/5.046, allocations: 1.327 MB / 1.846 GB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/5.046, allocations: 11.81 kB / 1.846 GB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.372e-06/5.046, allocations: 0 / 1.846 GB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/5.046, allocations: 3.047 kB / 1.846 GB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005791/5.052, allocations: 2.26 MB / 1.849 GB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/5.052, allocations: 7.359 kB / 1.849 GB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/5.053, allocations: 149.1 kB / 1.849 GB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/5.055, allocations: 309.9 kB / 1.849 GB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/5.055, allocations: 24 kB / 1.849 GB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/5.056, allocations: 0.8141 MB / 1.85 GB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/5.057, allocations: 0 / 1.85 GB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/5.061, allocations: 1.727 MB / 1.852 GB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008034/5.062, allocations: 283.8 kB / 1.852 GB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002792/5.062, allocations: 16.19 kB / 1.852 GB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/5.063, allocations: 63.97 kB / 1.852 GB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/5.063, allocations: 59.39 kB / 1.852 GB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/5.064, allocations: 43.14 kB / 1.852 GB, free: 13.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007594/5.064, allocations: 433.2 kB / 1.852 GB, free: 13.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.77e-07/5.064, allocations: 0 / 1.852 GB, free: 13.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003942/5.068, allocations: 0.8381 MB / 1.853 GB, free: 13.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.005189/5.074, allocations: 1.935 MB / 1.855 GB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002903/5.077, allocations: 1.233 MB / 1.856 GB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/5.077, allocations: 3.469 kB / 1.856 GB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/5.078, allocations: 0.4959 MB / 1.857 GB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/5.081, allocations: 382 kB / 1.857 GB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/5.086, allocations: 1.804 MB / 1.859 GB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/5.086, allocations: 1.1 MB / 1.86 GB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006939/5.087, allocations: 122 kB / 1.86 GB, free: 12.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.984e-06/5.087, allocations: 0 / 1.86 GB, free: 12.39 MB / 266.7 MB Notification: Performance of Templates: time 0.05342/5.141, allocations: 32.92 MB / 1.892 GB, free: 10.16 MB / 266.7 MB