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 0.9906/0.9906, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.31e-05, allocations: 4 kB / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1705, allocations: 25.15 MB / 179.5 MB, free: 0.6953 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.604/3.774, allocations: 1.246 GB / 1.421 GB, free: 50.89 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/3.775, allocations: 70.25 kB / 1.421 GB, free: 50.87 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.279/6.054, allocations: 419.7 MB / 1.831 GB, free: 16.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.404e-06/6.054, allocations: 5.875 kB / 1.831 GB, free: 16.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.599e-05/6.054, allocations: 24.83 kB / 1.831 GB, free: 16.39 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.01049/6.065, allocations: 2.512 MB / 1.834 GB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/6.065, allocations: 10.91 kB / 1.834 GB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003494/6.065, allocations: 141.6 kB / 1.834 GB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/6.066, allocations: 112.3 kB / 1.834 GB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/6.068, allocations: 0.6825 MB / 1.835 GB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/6.068, allocations: 135.9 kB / 1.835 GB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000224/6.068, allocations: 81.77 kB / 1.835 GB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00301/6.071, allocations: 1.314 MB / 1.836 GB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-05/6.071, allocations: 0 / 1.836 GB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/6.071, allocations: 38.03 kB / 1.836 GB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/6.071, allocations: 66.97 kB / 1.836 GB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/6.075, allocations: 1.265 MB / 1.837 GB, free: 14.25 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.01142/6.086, allocations: 5.686 MB / 1.843 GB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/6.088, allocations: 0.7358 MB / 1.844 GB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008859/6.089, allocations: 403.2 kB / 1.844 GB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001206/6.091, allocations: 1.376 MB / 1.845 GB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/6.091, allocations: 45.72 kB / 1.845 GB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007535/6.091, allocations: 97.5 kB / 1.846 GB, free: 9.523 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 3.447e-06/6.091, allocations: 4 kB / 1.846 GB, free: 9.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=81): time 0.02437/6.116, allocations: 4.009 MB / 1.849 GB, free: 8.965 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/6.116, allocations: 110.8 kB / 1.85 GB, free: 8.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/6.117, allocations: 0.6545 MB / 1.85 GB, free: 8.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/6.117, allocations: 44.95 kB / 1.85 GB, free: 8.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/6.118, allocations: 491.4 kB / 1.851 GB, free: 8.348 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/6.118, allocations: 296.2 kB / 1.851 GB, free: 8.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/6.118, allocations: 19.06 kB / 1.851 GB, free: 8.168 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/6.118, allocations: 361 kB / 1.851 GB, free: 7.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/6.119, allocations: 495 kB / 1.852 GB, free: 7.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/6.121, allocations: 0.8461 MB / 1.853 GB, free: 7.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/6.122, allocations: 0.667 MB / 1.853 GB, free: 7.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/6.122, allocations: 3.906 kB / 1.853 GB, free: 7.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.0108/6.133, allocations: 2.169 MB / 1.855 GB, free: 7.043 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.31e-05/6.133, allocations: 74.91 kB / 1.856 GB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/6.133, allocations: 11.56 kB / 1.856 GB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003708/6.137, allocations: 463.1 kB / 1.856 GB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/6.139, allocations: 258 kB / 1.856 GB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/6.141, allocations: 1.428 MB / 1.858 GB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/6.143, allocations: 115.1 kB / 1.858 GB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/6.144, allocations: 77.14 kB / 1.858 GB, free: 5.598 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.0004697/6.144, allocations: 177.3 kB / 1.858 GB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/6.145, allocations: 91.91 kB / 1.858 GB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004241/6.149, allocations: 1.405 MB / 1.859 GB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/6.149, allocations: 10.83 kB / 1.859 GB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/6.149, allocations: 0 / 1.859 GB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/6.149, allocations: 11.09 kB / 1.859 GB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00633/6.155, allocations: 2.445 MB / 1.862 GB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/6.155, allocations: 2.297 kB / 1.862 GB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/6.157, allocations: 160 kB / 1.862 GB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/6.159, allocations: 303.9 kB / 1.862 GB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002508/6.159, allocations: 28.59 kB / 1.862 GB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/6.161, allocations: 0.7998 MB / 1.863 GB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/6.161, allocations: 0 / 1.863 GB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008898/6.169, allocations: 2.216 MB / 1.865 GB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009828/6.17, allocations: 308.1 kB / 1.866 GB, free: 16.85 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/6.171, allocations: 21.83 kB / 1.866 GB, free: 16.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/6.172, allocations: 76.19 kB / 1.866 GB, free: 16.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/6.173, allocations: 69.52 kB / 1.866 GB, free: 16.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/6.173, allocations: 46.98 kB / 1.866 GB, free: 16.69 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009632/6.174, allocations: 0.4964 MB / 1.866 GB, free: 16.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.81e-07/6.174, allocations: 0 / 1.866 GB, free: 16.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004399/6.178, allocations: 0.906 MB / 1.867 GB, free: 15.37 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.01561/6.194, allocations: 4.789 MB / 1.872 GB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00428/6.198, allocations: 1.324 MB / 1.873 GB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/6.198, allocations: 9.266 kB / 1.873 GB, free: 10.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/6.2, allocations: 0.5433 MB / 1.874 GB, free: 9.527 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/6.204, allocations: 463.9 kB / 1.874 GB, free: 9.199 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/6.214, allocations: 2.416 MB / 1.876 GB, free: 7.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009668/6.215, allocations: 1.103 MB / 1.878 GB, free: 6.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/6.217, allocations: 395.6 kB / 1.878 GB, free: 5.742 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/6.217, allocations: 0 / 1.878 GB, free: 5.742 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.913/10.13, allocations: 38.26 MB / 1.915 GB, free: 24.37 MB / 282.7 MB