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 1.061/1.061, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002741, allocations: 8 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04963/0.04993, allocations: 25.16 MB / 183.5 MB, free: 5.98 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.062/3.112, allocations: 1.246 GB / 1.425 GB, free: 60.28 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/3.113, allocations: 71.03 kB / 1.425 GB, free: 60.22 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 1.984/5.097, allocations: 421 MB / 1.836 GB, free: 15.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.755e-06/5.097, allocations: 0 / 1.836 GB, free: 15.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.807e-05/5.097, allocations: 28.83 kB / 1.836 GB, free: 15.12 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.008698/5.106, allocations: 2.602 MB / 1.839 GB, free: 13.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/5.106, allocations: 15.67 kB / 1.839 GB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005892/5.107, allocations: 115.5 kB / 1.839 GB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/5.108, allocations: 0.6769 MB / 1.84 GB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/5.109, allocations: 135.5 kB / 1.84 GB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002641/5.109, allocations: 85.64 kB / 1.84 GB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003307/5.112, allocations: 1.353 MB / 1.841 GB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.088e-05/5.112, allocations: 7.5 kB / 1.841 GB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/5.113, allocations: 34.09 kB / 1.841 GB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/5.113, allocations: 62.75 kB / 1.841 GB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/5.116, allocations: 1.32 MB / 1.843 GB, free: 13.12 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.01052/5.127, allocations: 5.669 MB / 1.848 GB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/5.128, allocations: 0.7655 MB / 1.849 GB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/5.129, allocations: 1.371 MB / 1.85 GB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/5.13, allocations: 52.86 kB / 1.85 GB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007249/5.13, allocations: 98.25 kB / 1.851 GB, free: 8.449 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 4.38e-06/5.13, allocations: 0 / 1.851 GB, free: 8.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=81): time 0.02197/5.152, allocations: 4.64 MB / 1.855 GB, free: 7.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/5.152, allocations: 113.3 kB / 1.855 GB, free: 7.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/5.154, allocations: 0.6611 MB / 1.856 GB, free: 7.617 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002559/5.154, allocations: 41.83 kB / 1.856 GB, free: 7.586 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/5.154, allocations: 0.4885 MB / 1.856 GB, free: 7.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002931/5.154, allocations: 286.6 kB / 1.857 GB, free: 7.082 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/5.155, allocations: 25.09 kB / 1.857 GB, free: 7.082 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.942e-05/5.155, allocations: 356.7 kB / 1.857 GB, free: 6.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/5.156, allocations: 0.5345 MB / 1.857 GB, free: 6.766 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/5.158, allocations: 0.8933 MB / 1.858 GB, free: 6.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/5.16, allocations: 0.716 MB / 1.859 GB, free: 6.242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/5.16, allocations: 2.562 kB / 1.859 GB, free: 6.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00875/5.169, allocations: 2.316 MB / 1.861 GB, free: 5.961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-05/5.169, allocations: 64.84 kB / 1.861 GB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/5.169, allocations: 10.78 kB / 1.861 GB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003557/5.172, allocations: 0.5475 MB / 1.862 GB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/5.174, allocations: 257.7 kB / 1.862 GB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002505/5.176, allocations: 1.538 MB / 1.864 GB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/5.178, allocations: 110.8 kB / 1.864 GB, free: 4.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/5.179, allocations: 75.84 kB / 1.864 GB, free: 4.77 MB / 266.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.0008264/5.179, allocations: 333.1 kB / 1.864 GB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/5.18, allocations: 89.53 kB / 1.864 GB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004511/5.184, allocations: 1.533 MB / 1.866 GB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/5.184, allocations: 14.66 kB / 1.866 GB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.537e-06/5.184, allocations: 0 / 1.866 GB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/5.184, allocations: 9.516 kB / 1.866 GB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006359/5.191, allocations: 2.574 MB / 1.868 GB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/5.191, allocations: 3 kB / 1.868 GB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/5.192, allocations: 157.6 kB / 1.868 GB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002593/5.194, allocations: 404.2 kB / 1.869 GB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/5.195, allocations: 32.75 kB / 1.869 GB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/5.196, allocations: 0.8898 MB / 1.87 GB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.687e-06/5.196, allocations: 3.953 kB / 1.87 GB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008208/5.205, allocations: 2.411 MB / 1.872 GB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008649/5.206, allocations: 308.2 kB / 1.872 GB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/5.206, allocations: 22.12 kB / 1.872 GB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/5.207, allocations: 73.17 kB / 1.872 GB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/5.207, allocations: 63.03 kB / 1.873 GB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/5.207, allocations: 48.44 kB / 1.873 GB, free: 1.848 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008825/5.208, allocations: 0.5117 MB / 1.873 GB, free: 1.629 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.54e-07/5.208, allocations: 0 / 1.873 GB, free: 1.629 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003899/5.212, allocations: 0.9006 MB / 1.874 GB, free: 1.363 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 () * 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.004505/5.217, allocations: 1.779 MB / 1.876 GB, free: 0.793 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003747/5.22, allocations: 1.412 MB / 1.877 GB, free: 240 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.118e-06/5.22, allocations: 6.719 kB / 1.877 GB, free: 236 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/5.222, allocations: 0.5992 MB / 1.878 GB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/5.225, allocations: 479.4 kB / 1.878 GB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006908/5.232, allocations: 2.78 MB / 1.881 GB, free: 13.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/5.233, allocations: 1.106 MB / 1.882 GB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007394/5.234, allocations: 127.1 kB / 1.882 GB, free: 12.78 MB / 282.7 MB Notification: Performance of SimCode: time 1.73e-06/5.234, allocations: 7.609 kB / 1.882 GB, free: 12.78 MB / 282.7 MB Notification: Performance of Templates: time 0.2481/5.482, allocations: 33.96 MB / 1.915 GB, free: 24.72 MB / 282.7 MB