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/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.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 0.9488/0.9488, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.672e-05/2.71e-05, allocations: 4 kB / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1387, allocations: 25.14 MB / 179.4 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.806/2.944, allocations: 1.246 GB / 1.421 GB, free: 8.934 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/2.945, allocations: 70.77 kB / 1.421 GB, free: 8.867 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 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 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.188/5.132, allocations: 419.7 MB / 1.831 GB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.551e-06/5.132, allocations: 0.875 kB / 1.831 GB, free: 11.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.576e-05/5.133, allocations: 30.52 kB / 1.831 GB, free: 11.2 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.007825/5.14, allocations: 2.511 MB / 1.834 GB, free: 10.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/5.14, allocations: 9.875 kB / 1.834 GB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000447/5.141, allocations: 112 kB / 1.834 GB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/5.143, allocations: 0.6792 MB / 1.834 GB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/5.143, allocations: 136.8 kB / 1.835 GB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/5.143, allocations: 86.75 kB / 1.835 GB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/5.146, allocations: 1.308 MB / 1.836 GB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/5.146, allocations: 1.781 kB / 1.836 GB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/5.146, allocations: 40.73 kB / 1.836 GB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-05/5.146, allocations: 56.8 kB / 1.836 GB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/5.149, allocations: 1.274 MB / 1.837 GB, free: 9.648 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.009408/5.158, allocations: 5.674 MB / 1.843 GB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/5.16, allocations: 0.7522 MB / 1.843 GB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007646/5.161, allocations: 395.4 kB / 1.844 GB, free: 6.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0015/5.162, allocations: 1.379 MB / 1.845 GB, free: 21.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/5.162, allocations: 45.53 kB / 1.845 GB, free: 21.05 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007088/5.163, allocations: 105.6 kB / 1.845 GB, free: 21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=69): time 4.389e-06/5.163, allocations: 2.516 kB / 1.845 GB, free: 21 MB / 282.7 MB Notification: Performance of matching and sorting (n=81): time 0.01727/5.18, allocations: 4.003 MB / 1.849 GB, free: 20.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/5.18, allocations: 110.9 kB / 1.849 GB, free: 20.44 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/5.182, allocations: 0.6552 MB / 1.85 GB, free: 20.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001774/5.182, allocations: 43.14 kB / 1.85 GB, free: 20.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/5.182, allocations: 492.1 kB / 1.851 GB, free: 19.95 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/5.182, allocations: 292.4 kB / 1.851 GB, free: 19.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/5.183, allocations: 24.38 kB / 1.851 GB, free: 19.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/5.183, allocations: 357.9 kB / 1.851 GB, free: 19.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/5.184, allocations: 493 kB / 1.852 GB, free: 19.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/5.185, allocations: 0.8428 MB / 1.852 GB, free: 19.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/5.187, allocations: 0.6728 MB / 1.853 GB, free: 18.96 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.5e-05/5.187, allocations: 3.188 kB / 1.853 GB, free: 18.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.008532/5.195, allocations: 2.167 MB / 1.855 GB, free: 18.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/5.195, allocations: 71.11 kB / 1.855 GB, free: 18.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/5.195, allocations: 9.594 kB / 1.855 GB, free: 18.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/5.198, allocations: 467.8 kB / 1.856 GB, free: 18.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/5.199, allocations: 261.1 kB / 1.856 GB, free: 18.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/5.201, allocations: 1.43 MB / 1.857 GB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/5.203, allocations: 112.6 kB / 1.858 GB, free: 17.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/5.203, allocations: 73.84 kB / 1.858 GB, free: 17.68 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: 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.0004099/5.204, allocations: 178.3 kB / 1.858 GB, free: 17.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/5.204, allocations: 97.17 kB / 1.858 GB, free: 17.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/5.207, allocations: 1.4 MB / 1.859 GB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/5.207, allocations: 9.719 kB / 1.859 GB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/5.207, allocations: 0 / 1.859 GB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/5.207, allocations: 6 kB / 1.859 GB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005055/5.212, allocations: 2.447 MB / 1.862 GB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.322e-06/5.212, allocations: 1 kB / 1.862 GB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00094/5.213, allocations: 156.6 kB / 1.862 GB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/5.215, allocations: 315.2 kB / 1.862 GB, free: 17 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/5.215, allocations: 39.31 kB / 1.862 GB, free: 17 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/5.216, allocations: 0.7853 MB / 1.863 GB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.578e-06/5.216, allocations: 0 / 1.863 GB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005899/5.222, allocations: 2.22 MB / 1.865 GB, free: 16.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007873/5.223, allocations: 300.2 kB / 1.865 GB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002131/5.223, allocations: 20.19 kB / 1.865 GB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/5.224, allocations: 80.22 kB / 1.865 GB, free: 16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/5.224, allocations: 65.34 kB / 1.865 GB, free: 16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/5.225, allocations: 48.61 kB / 1.866 GB, free: 16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008248/5.225, allocations: 0.4998 MB / 1.866 GB, free: 15.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.87e-07/5.225, allocations: 0 / 1.866 GB, free: 15.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003347/5.229, allocations: 0.9009 MB / 1.867 GB, free: 15.75 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 () * 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.00416/5.233, allocations: 1.79 MB / 1.869 GB, free: 15.39 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002929/5.236, allocations: 1.319 MB / 1.87 GB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.059e-06/5.236, allocations: 0 / 1.87 GB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/5.237, allocations: 0.5501 MB / 1.87 GB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/5.24, allocations: 463 kB / 1.871 GB, free: 15.22 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005017/5.245, allocations: 1.898 MB / 1.873 GB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/5.246, allocations: 1.099 MB / 1.874 GB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006681/5.247, allocations: 126.3 kB / 1.874 GB, free: 14.17 MB / 282.7 MB Notification: Performance of SimCode: time 2.058e-06/5.247, allocations: 0 / 1.874 GB, free: 14.17 MB / 282.7 MB Notification: Performance of Templates: time 0.04989/5.296, allocations: 33.93 MB / 1.907 GB, free: 11.7 MB / 282.7 MB