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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.117/1.117, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.82e-05, allocations: 3.938 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05941/0.05948, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.667/3.726, allocations: 1.245 GB / 1.415 GB, free: 53.43 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/3.727, allocations: 70.08 kB / 1.415 GB, free: 53.43 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.333/6.06, allocations: 415.2 MB / 1.82 GB, free: 16.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.134e-06/6.06, allocations: 2.734 kB / 1.82 GB, free: 16.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.412e-05/6.06, allocations: 25.69 kB / 1.82 GB, free: 16.33 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.01153/6.072, allocations: 2.52 MB / 1.823 GB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.271e-05/6.072, allocations: 9.906 kB / 1.823 GB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008489/6.073, allocations: 111.9 kB / 1.823 GB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003029/6.076, allocations: 0.6886 MB / 1.823 GB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002916/6.076, allocations: 107.8 kB / 1.823 GB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004542/6.077, allocations: 49.91 kB / 1.824 GB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004758/6.082, allocations: 1.135 MB / 1.825 GB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00465/6.086, allocations: 1.178 MB / 1.826 GB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.016e-05/6.086, allocations: 6.969 kB / 1.826 GB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002558/6.087, allocations: 3.5 kB / 1.826 GB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/6.087, allocations: 61.05 kB / 1.826 GB, free: 14.62 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.01677/6.104, allocations: 5.532 MB / 1.831 GB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002909/6.107, allocations: 0.6814 MB / 1.832 GB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/6.108, allocations: 376.3 kB / 1.832 GB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001726/6.11, allocations: 1.373 MB / 1.834 GB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/6.11, allocations: 41.19 kB / 1.834 GB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001089/6.111, allocations: 82.84 kB / 1.834 GB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=68): time 5.981e-06/6.111, allocations: 0 / 1.834 GB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.03124/6.142, allocations: 3.547 MB / 1.837 GB, free: 9.555 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/6.142, allocations: 114.2 kB / 1.837 GB, free: 9.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/6.144, allocations: 0.5302 MB / 1.838 GB, free: 9.293 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003175/6.144, allocations: 25.7 kB / 1.838 GB, free: 9.262 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004575/6.145, allocations: 0.5058 MB / 1.838 GB, free: 8.914 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004627/6.145, allocations: 278.3 kB / 1.839 GB, free: 8.738 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/6.145, allocations: 0 / 1.839 GB, free: 8.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/6.145, allocations: 360.4 kB / 1.839 GB, free: 8.422 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/6.147, allocations: 474.1 kB / 1.839 GB, free: 8.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002268/6.149, allocations: 0.8196 MB / 1.84 GB, free: 7.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004887/6.154, allocations: 0.7036 MB / 1.841 GB, free: 7.988 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.188e-05/6.155, allocations: 4.094 kB / 1.841 GB, free: 7.988 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.0115/6.166, allocations: 1.753 MB / 1.843 GB, free: 7.898 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/6.166, allocations: 65.77 kB / 1.843 GB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.403e-05/6.166, allocations: 12.56 kB / 1.843 GB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004484/6.171, allocations: 438 kB / 1.843 GB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/6.173, allocations: 258.6 kB / 1.843 GB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002405/6.176, allocations: 1.451 MB / 1.845 GB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003019/6.179, allocations: 90.95 kB / 1.845 GB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004694/6.18, allocations: 74.86 kB / 1.845 GB, free: 6.773 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.0006125/6.18, allocations: 149.2 kB / 1.845 GB, free: 6.66 MB / 266.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006278/6.186, allocations: 1.126 MB / 1.846 GB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/6.187, allocations: 79.34 kB / 1.846 GB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00647/6.194, allocations: 1.336 MB / 1.848 GB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/6.194, allocations: 9.438 kB / 1.848 GB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/6.194, allocations: 0 / 1.848 GB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.078e-05/6.194, allocations: 5.641 kB / 1.848 GB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009114/6.203, allocations: 2.249 MB / 1.85 GB, free: 6.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/6.203, allocations: 3.953 kB / 1.85 GB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/6.205, allocations: 153 kB / 1.85 GB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002903/6.208, allocations: 306.3 kB / 1.85 GB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/6.208, allocations: 25.66 kB / 1.85 GB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/6.21, allocations: 0.8089 MB / 1.851 GB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/6.21, allocations: 3.078 kB / 1.851 GB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006692/6.216, allocations: 1.731 MB / 1.853 GB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/6.218, allocations: 283.3 kB / 1.853 GB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004603/6.218, allocations: 15.69 kB / 1.853 GB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/6.221, allocations: 65.05 kB / 1.853 GB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/6.221, allocations: 61.42 kB / 1.853 GB, free: 5.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002224/6.221, allocations: 43.58 kB / 1.853 GB, free: 5.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001148/6.222, allocations: 429.5 kB / 1.854 GB, free: 4.938 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.244e-06/6.222, allocations: 1.281 kB / 1.854 GB, free: 4.938 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005615/6.228, allocations: 0.8327 MB / 1.854 GB, free: 4.789 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 78 * 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.01484/6.243, allocations: 4.47 MB / 1.859 GB, free: 19.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004536/6.247, allocations: 1.23 MB / 1.86 GB, free: 19.17 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/6.247, allocations: 4.688 kB / 1.86 GB, free: 19.17 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/6.249, allocations: 0.4901 MB / 1.86 GB, free: 19.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004457/6.254, allocations: 377.5 kB / 1.861 GB, free: 19.14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/6.266, allocations: 2.281 MB / 1.863 GB, free: 18.58 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/6.267, allocations: 1.101 MB / 1.864 GB, free: 17.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/6.269, allocations: 379.5 kB / 1.864 GB, free: 17.87 MB / 282.7 MB Notification: Performance of SimCode: time 1.372e-06/6.269, allocations: 0 / 1.864 GB, free: 17.87 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.868/10.14, allocations: 37.2 MB / 1.901 GB, free: 5.805 MB / 282.7 MB