Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.645/1.645, allocations: 171.1 MB / 186.1 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.000357, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08562/0.08601, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.79/10.87, allocations: 3.681 GB / 3.946 GB, free: 97.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/10.87, allocations: 84.8 kB / 3.946 GB, free: 97.75 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:112:17-112:29:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:122:23-122:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:168:23-168:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 5.174/16.05, allocations: 0.8939 GB / 4.84 GB, free: 21.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.915e-06/16.05, allocations: 1.859 kB / 4.84 GB, free: 21.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003439/16.05, allocations: 77.97 kB / 4.84 GB, free: 21.38 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 820 * Number of variables: 820 Notification: Performance of Generate backend data structure: time 0.03051/16.08, allocations: 6.29 MB / 4.846 GB, free: 18.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/16.08, allocations: 12.94 kB / 4.846 GB, free: 18.44 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002833/16.08, allocations: 458.7 kB / 4.847 GB, free: 18.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003649/16.09, allocations: 405.3 kB / 4.847 GB, free: 18.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/16.1, allocations: 2.417 MB / 4.85 GB, free: 17.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006103/16.1, allocations: 360.3 kB / 4.85 GB, free: 17.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00205/16.1, allocations: 299.9 kB / 4.85 GB, free: 17.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/16.12, allocations: 5.29 MB / 4.855 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001966/16.12, allocations: 14.05 kB / 4.855 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00177/16.12, allocations: 124.8 kB / 4.856 GB, free: 17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004414/16.12, allocations: 264.2 kB / 4.856 GB, free: 16.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01747/16.14, allocations: 5.607 MB / 4.861 GB, free: 16.96 MB / 410.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.05348/16.19, allocations: 18.76 MB / 4.88 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/16.2, allocations: 3.542 MB / 4.883 GB, free: 9.992 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003525/16.21, allocations: 3.221 MB / 4.886 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008116/16.21, allocations: 2.552 MB / 4.889 GB, free: 6.438 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002839/16.22, allocations: 279.1 kB / 4.889 GB, free: 6.285 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 1.621e-05/16.22, allocations: 0 / 4.889 GB, free: 6.285 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.2293/16.45, allocations: 33.99 MB / 4.922 GB, free: 18.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002479/16.45, allocations: 361.7 kB / 4.923 GB, free: 18.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/16.45, allocations: 1.851 MB / 4.924 GB, free: 17.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001372/16.45, allocations: 98.45 kB / 4.924 GB, free: 17.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/16.45, allocations: 1.309 MB / 4.926 GB, free: 16.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002406/16.46, allocations: 1.314 MB / 4.927 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009622/16.46, allocations: 87.34 kB / 4.927 GB, free: 15.69 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004792/16.46, allocations: 474.5 kB / 4.928 GB, free: 15.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01107/16.47, allocations: 2.891 MB / 4.93 GB, free: 13.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0127/16.48, allocations: 3.88 MB / 4.934 GB, free: 9.449 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/16.5, allocations: 3.448 MB / 4.938 GB, free: 6.449 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.862e-05/16.5, allocations: 12 kB / 4.938 GB, free: 6.438 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.04443/16.54, allocations: 9.342 MB / 4.947 GB, free: 15.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005265/16.55, allocations: 11.03 MB / 4.957 GB, free: 3.254 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/16.55, allocations: 24 kB / 4.957 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01927/16.56, allocations: 2.754 MB / 4.96 GB, free: 1.297 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008792/16.57, allocations: 0.9366 MB / 4.961 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.382/16.96, allocations: 6.721 MB / 4.968 GB, free: 46.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008624/16.96, allocations: 0.5365 MB / 4.968 GB, free: 46.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001779/16.97, allocations: 244.9 kB / 4.968 GB, free: 46.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/16.97, allocations: 3.531 kB / 4.968 GB, free: 46.38 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03916/17.01, allocations: 8.778 MB / 4.977 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/17.01, allocations: 28.25 kB / 4.977 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0168/17.02, allocations: 2.575 MB / 4.979 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008577/17.03, allocations: 0.959 MB / 4.98 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/17.05, allocations: 6.568 MB / 4.987 GB, free: 42.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008566/17.06, allocations: 0.5297 MB / 4.987 GB, free: 42.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/17.06, allocations: 241.2 kB / 4.988 GB, free: 42.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 14 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 486 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.004782/17.06, allocations: 1.097 MB / 4.989 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001419/17.06, allocations: 298.8 kB / 4.989 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03262/17.1, allocations: 8.652 MB / 4.997 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.563e-05/17.1, allocations: 46.83 kB / 4.997 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-05/17.1, allocations: 3.953 kB / 4.997 GB, free: 42.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02483/17.12, allocations: 6.748 MB / 5.004 GB, free: 42.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04409/17.17, allocations: 12.89 MB / 5.017 GB, free: 41.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.798e-05/17.17, allocations: 6.922 kB / 5.017 GB, free: 41.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007057/17.17, allocations: 0.7053 MB / 5.017 GB, free: 41.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02178/17.19, allocations: 3.119 MB / 5.02 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001463/17.2, allocations: 177.5 kB / 5.021 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/17.21, allocations: 6.326 MB / 5.027 GB, free: 38.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/17.21, allocations: 3.281 kB / 5.027 GB, free: 38.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03969/17.25, allocations: 11.26 MB / 5.038 GB, free: 37.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004489/17.25, allocations: 1.052 MB / 5.039 GB, free: 37.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001824/17.26, allocations: 131.6 kB / 5.039 GB, free: 37.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007401/17.26, allocations: 420.4 kB / 5.039 GB, free: 37.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001377/17.26, allocations: 262.8 kB / 5.039 GB, free: 37.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007566/17.27, allocations: 191 kB / 5.04 GB, free: 37.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003205/17.27, allocations: 1.395 MB / 5.041 GB, free: 37.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.202e-06/17.27, allocations: 2.406 kB / 5.041 GB, free: 37.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01713/17.29, allocations: 3.242 MB / 5.044 GB, free: 37.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 2 ($whenCondition1,NumberOfPeople.nextTimeEvent) * Number of discrete states: 1 (NumberOfPeople.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 7,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05323/17.34, allocations: 15.31 MB / 5.059 GB, free: 35.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0392/17.38, allocations: 11.35 MB / 5.07 GB, free: 31.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/17.38, allocations: 0.9375 kB / 5.07 GB, free: 31.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01221/17.39, allocations: 3.447 MB / 5.074 GB, free: 30.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01188/17.4, allocations: 1.327 MB / 5.075 GB, free: 30.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04529/17.45, allocations: 33.32 MB / 5.107 GB, free: 376 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004214/17.45, allocations: 2.499 MB / 5.11 GB, free: 14.51 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01535/17.47, allocations: 2.531 MB / 5.112 GB, free: 12.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005024/17.47, allocations: 1.438 MB / 5.114 GB, free: 11.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.874e-06/17.47, allocations: 11.31 kB / 5.114 GB, free: 11.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7009/18.17, allocations: 156.2 MB / 5.266 GB, free: 19.53 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/18.17, allocations: 259.4 kB / 5.267 GB, free: 19.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/28.6, allocations: 0 / 5.267 GB, free: 19.18 MB / 458.7 MB