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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.045/1.045, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003658, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06007/0.0605, allocations: 25.18 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.831/3.892, allocations: 1.246 GB / 1.425 GB, free: 26.2 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/3.892, allocations: 73.22 kB / 1.425 GB, free: 26.16 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.413/6.306, allocations: 421 MB / 1.837 GB, free: 8.875 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.254e-06/6.306, allocations: 0 / 1.837 GB, free: 8.875 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001421/6.306, allocations: 20 kB / 1.837 GB, free: 8.855 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.0106/6.317, allocations: 2.605 MB / 1.839 GB, free: 6.223 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/6.317, allocations: 16.02 kB / 1.839 GB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005869/6.317, allocations: 139.3 kB / 1.839 GB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000372/6.318, allocations: 110.8 kB / 1.839 GB, free: 5.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/6.32, allocations: 0.6854 MB / 1.84 GB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000229/6.32, allocations: 141.4 kB / 1.84 GB, free: 5.074 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003495/6.321, allocations: 87.59 kB / 1.84 GB, free: 4.992 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00391/6.325, allocations: 1.35 MB / 1.842 GB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.207e-05/6.325, allocations: 0 / 1.842 GB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/6.325, allocations: 39.94 kB / 1.842 GB, free: 3.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/6.325, allocations: 57.97 kB / 1.842 GB, free: 3.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003923/6.329, allocations: 1.315 MB / 1.843 GB, free: 2.164 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.2492/6.578, allocations: 5.672 MB / 1.849 GB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/6.582, allocations: 0.7551 MB / 1.849 GB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001631/6.583, allocations: 1.378 MB / 1.851 GB, free: 8.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.261e-05/6.583, allocations: 48.16 kB / 1.851 GB, free: 8.023 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001166/6.585, allocations: 95.55 kB / 1.851 GB, free: 8.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 5.159e-06/6.585, allocations: 0 / 1.851 GB, free: 8.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=81): time 0.04071/6.625, allocations: 4.649 MB / 1.855 GB, free: 7.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/6.625, allocations: 111 kB / 1.855 GB, free: 7.355 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/6.628, allocations: 0.6586 MB / 1.856 GB, free: 7.234 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004057/6.628, allocations: 44.55 kB / 1.856 GB, free: 7.203 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005127/6.629, allocations: 495.9 kB / 1.857 GB, free: 6.922 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/6.629, allocations: 299.4 kB / 1.857 GB, free: 6.781 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/6.629, allocations: 25.88 kB / 1.857 GB, free: 6.781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/6.63, allocations: 354.5 kB / 1.857 GB, free: 6.469 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002672/6.632, allocations: 0.5283 MB / 1.858 GB, free: 6.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002979/6.635, allocations: 0.8937 MB / 1.859 GB, free: 6.051 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003089/6.638, allocations: 0.7192 MB / 1.859 GB, free: 5.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.056e-05/6.638, allocations: 3.531 kB / 1.859 GB, free: 5.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.01593/6.654, allocations: 2.303 MB / 1.862 GB, free: 5.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/6.655, allocations: 65.64 kB / 1.862 GB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-05/6.655, allocations: 13.91 kB / 1.862 GB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004991/6.66, allocations: 0.5508 MB / 1.862 GB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002007/6.662, allocations: 253 kB / 1.862 GB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/6.665, allocations: 1.544 MB / 1.864 GB, free: 20.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002571/6.668, allocations: 110.5 kB / 1.864 GB, free: 20.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004859/6.668, allocations: 74.86 kB / 1.864 GB, free: 20.7 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.001416/6.67, allocations: 335.4 kB / 1.864 GB, free: 20.58 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/6.67, allocations: 89.95 kB / 1.864 GB, free: 20.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005653/6.676, allocations: 1.532 MB / 1.866 GB, free: 20.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/6.676, allocations: 10.28 kB / 1.866 GB, free: 20.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/6.676, allocations: 0 / 1.866 GB, free: 20.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.533e-05/6.676, allocations: 4.641 kB / 1.866 GB, free: 20.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007699/6.684, allocations: 2.583 MB / 1.869 GB, free: 20.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/6.684, allocations: 0 / 1.869 GB, free: 20.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/6.685, allocations: 162.5 kB / 1.869 GB, free: 20.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/6.689, allocations: 392.3 kB / 1.869 GB, free: 20.04 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002976/6.689, allocations: 40.33 kB / 1.869 GB, free: 20.03 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/6.691, allocations: 0.8916 MB / 1.87 GB, free: 19.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/6.691, allocations: 5.344 kB / 1.87 GB, free: 19.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/6.702, allocations: 2.406 MB / 1.872 GB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/6.703, allocations: 305.7 kB / 1.873 GB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/6.704, allocations: 27.3 kB / 1.873 GB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/6.705, allocations: 75.05 kB / 1.873 GB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/6.706, allocations: 59.45 kB / 1.873 GB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/6.706, allocations: 48.7 kB / 1.873 GB, free: 19.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001046/6.707, allocations: 0.5056 MB / 1.873 GB, free: 18.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.11e-07/6.707, allocations: 0 / 1.873 GB, free: 18.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004697/6.712, allocations: 0.8987 MB / 1.874 GB, free: 18.93 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.01716/6.729, allocations: 4.977 MB / 1.879 GB, free: 17.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004798/6.734, allocations: 1.417 MB / 1.88 GB, free: 17.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/6.734, allocations: 2.375 kB / 1.88 GB, free: 17.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/6.736, allocations: 0.5988 MB / 1.881 GB, free: 17.44 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/6.74, allocations: 464.7 kB / 1.881 GB, free: 17.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/6.755, allocations: 11.29 MB / 1.892 GB, free: 8.449 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000947/6.756, allocations: 1.101 MB / 1.894 GB, free: 7.742 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/6.757, allocations: 388.3 kB / 1.894 GB, free: 7.738 MB / 282.7 MB Notification: Performance of SimCode: time 2.735e-06/6.757, allocations: 0 / 1.894 GB, free: 7.738 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.751/10.51, allocations: 38.01 MB / 1.931 GB, free: 4.723 MB / 282.7 MB