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.RoomCO2.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.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.179/1.179, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05859/0.05889, allocations: 25.16 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.871/3.93, allocations: 1.246 GB / 1.426 GB, free: 21.44 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/3.931, allocations: 75 kB / 1.426 GB, free: 21.37 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 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 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.42/6.351, allocations: 421 MB / 1.837 GB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.555e-06/6.351, allocations: 0 / 1.837 GB, free: 6.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.896e-05/6.351, allocations: 20 kB / 1.837 GB, free: 6.391 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.01135/6.362, allocations: 2.601 MB / 1.84 GB, free: 3.766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/6.362, allocations: 16 kB / 1.84 GB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006502/6.363, allocations: 116.3 kB / 1.84 GB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002086/6.365, allocations: 0.6847 MB / 1.84 GB, free: 2.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/6.365, allocations: 141.3 kB / 1.84 GB, free: 2.762 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/6.366, allocations: 83.98 kB / 1.841 GB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00373/6.369, allocations: 1.35 MB / 1.842 GB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.322e-05/6.369, allocations: 4 kB / 1.842 GB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/6.37, allocations: 39.98 kB / 1.842 GB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/6.37, allocations: 65.59 kB / 1.842 GB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.244/6.614, allocations: 1.316 MB / 1.843 GB, free: 11.95 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.01257/6.626, allocations: 5.675 MB / 1.849 GB, free: 9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/6.629, allocations: 0.7576 MB / 1.85 GB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001253/6.63, allocations: 1.372 MB / 1.851 GB, free: 7.465 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/6.63, allocations: 42.31 kB / 1.851 GB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008384/6.631, allocations: 100.6 kB / 1.851 GB, free: 7.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 3.747e-06/6.631, allocations: 0 / 1.851 GB, free: 7.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=81): time 0.03088/6.662, allocations: 4.644 MB / 1.856 GB, free: 6.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/6.662, allocations: 116.5 kB / 1.856 GB, free: 6.742 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/6.663, allocations: 0.7371 MB / 1.856 GB, free: 6.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003436/6.664, allocations: 43.61 kB / 1.856 GB, free: 6.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/6.664, allocations: 496.2 kB / 1.857 GB, free: 6.297 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004109/6.665, allocations: 287.9 kB / 1.857 GB, free: 6.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/6.665, allocations: 27.78 kB / 1.857 GB, free: 6.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/6.665, allocations: 353.2 kB / 1.858 GB, free: 5.844 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/6.667, allocations: 0.5322 MB / 1.858 GB, free: 5.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002171/6.669, allocations: 0.8996 MB / 1.859 GB, free: 5.422 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/6.671, allocations: 0.7184 MB / 1.86 GB, free: 5.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/6.671, allocations: 5.375 kB / 1.86 GB, free: 5.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.01324/6.685, allocations: 2.302 MB / 1.862 GB, free: 5.188 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.804e-05/6.685, allocations: 63.95 kB / 1.862 GB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/6.685, allocations: 11.47 kB / 1.862 GB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00492/6.69, allocations: 0.5475 MB / 1.863 GB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/6.692, allocations: 266.6 kB / 1.863 GB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/6.695, allocations: 1.537 MB / 1.864 GB, free: 20.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/6.698, allocations: 114 kB / 1.864 GB, free: 20.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/6.698, allocations: 72.42 kB / 1.864 GB, free: 20.07 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: 50 * Number of states: 0 () * Number of discrete variables: 2 (traceVolume.ind,traceSource.ind) * Number of discrete states: 0 () * Number of clocked 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.001107/6.699, allocations: 332.5 kB / 1.865 GB, free: 19.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/6.7, allocations: 88.39 kB / 1.865 GB, free: 19.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00544/6.705, allocations: 1.534 MB / 1.866 GB, free: 19.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/6.705, allocations: 8.125 kB / 1.866 GB, free: 19.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/6.705, allocations: 3.25 kB / 1.866 GB, free: 19.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/6.705, allocations: 7.312 kB / 1.866 GB, free: 19.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007934/6.713, allocations: 2.573 MB / 1.869 GB, free: 19.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/6.713, allocations: 4.562 kB / 1.869 GB, free: 19.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/6.715, allocations: 157.2 kB / 1.869 GB, free: 19.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003384/6.718, allocations: 403.1 kB / 1.869 GB, free: 19.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000261/6.718, allocations: 30.48 kB / 1.869 GB, free: 19.4 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/6.721, allocations: 0.8983 MB / 1.87 GB, free: 18.89 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/6.721, allocations: 9.734 kB / 1.87 GB, free: 18.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/6.731, allocations: 2.347 MB / 1.873 GB, free: 18.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000857/6.732, allocations: 299.8 kB / 1.873 GB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/6.732, allocations: 26.41 kB / 1.873 GB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/6.734, allocations: 76.02 kB / 1.873 GB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/6.734, allocations: 65.36 kB / 1.873 GB, free: 18.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/6.734, allocations: 44.03 kB / 1.873 GB, free: 18.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009788/6.735, allocations: 0.5069 MB / 1.874 GB, free: 18.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.51e-07/6.735, allocations: 4.656 kB / 1.874 GB, free: 18.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003897/6.739, allocations: 0.9014 MB / 1.874 GB, free: 18.38 MB / 282.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 82 * 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.007663/6.747, allocations: 1.775 MB / 1.876 GB, free: 18.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006866/6.754, allocations: 1.423 MB / 1.878 GB, free: 18.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/6.754, allocations: 0 / 1.878 GB, free: 18.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001994/6.756, allocations: 0.5979 MB / 1.878 GB, free: 18.01 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004086/6.76, allocations: 467.2 kB / 1.879 GB, free: 17.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/6.768, allocations: 2.782 MB / 1.881 GB, free: 17.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008899/6.769, allocations: 1.102 MB / 1.882 GB, free: 16.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008544/6.77, allocations: 126.2 kB / 1.883 GB, free: 16.31 MB / 282.7 MB Notification: Performance of SimCode: time 1.663e-06/6.77, allocations: 1.438 kB / 1.883 GB, free: 16.31 MB / 282.7 MB Notification: Performance of Templates: time 0.06814/6.838, allocations: 34.01 MB / 1.916 GB, free: 13.75 MB / 282.7 MB