Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003531, allocations: 11.98 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08408, allocations: 38.77 MB / 272.5 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.81/10.9, allocations: 3.681 GB / 3.947 GB, free: 98.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/10.9, allocations: 87.7 kB / 3.947 GB, free: 98.06 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.285/16.18, allocations: 0.8939 GB / 4.841 GB, free: 21.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.477e-06/16.18, allocations: 3.844 kB / 4.841 GB, free: 21.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003459/16.18, allocations: 75.77 kB / 4.841 GB, free: 21.54 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.03071/16.21, allocations: 6.283 MB / 4.847 GB, free: 18.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/16.21, allocations: 13.39 kB / 4.847 GB, free: 18.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003622/16.22, allocations: 406.5 kB / 4.847 GB, free: 18.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/16.23, allocations: 2.418 MB / 4.85 GB, free: 17.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005867/16.23, allocations: 365.9 kB / 4.85 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/16.23, allocations: 302 kB / 4.85 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01893/16.25, allocations: 5.314 MB / 4.855 GB, free: 17.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001695/16.25, allocations: 11.22 kB / 4.855 GB, free: 17.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00141/16.25, allocations: 129.7 kB / 4.856 GB, free: 17.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004229/16.25, allocations: 256.8 kB / 4.856 GB, free: 17.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/16.27, allocations: 5.612 MB / 4.861 GB, free: 17.18 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.05453/16.32, allocations: 18.76 MB / 4.88 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/16.34, allocations: 3.539 MB / 4.883 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003531/16.34, allocations: 3.222 MB / 4.886 GB, free: 6.828 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008297/16.35, allocations: 2.563 MB / 4.889 GB, free: 6.652 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002908/16.35, allocations: 275.3 kB / 4.889 GB, free: 6.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 1.579e-05/16.35, allocations: 0.9688 kB / 4.889 GB, free: 6.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.2341/16.58, allocations: 34 MB / 4.922 GB, free: 19.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002142/16.58, allocations: 352.8 kB / 4.923 GB, free: 18.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004642/16.59, allocations: 2.081 MB / 4.925 GB, free: 18.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001438/16.59, allocations: 103.3 kB / 4.925 GB, free: 18.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/16.59, allocations: 1.236 MB / 4.926 GB, free: 17.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002476/16.59, allocations: 1.311 MB / 4.927 GB, free: 16.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008295/16.6, allocations: 83.69 kB / 4.927 GB, free: 16.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004435/16.6, allocations: 495.7 kB / 4.928 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01087/16.61, allocations: 2.884 MB / 4.931 GB, free: 13.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/16.62, allocations: 3.903 MB / 4.934 GB, free: 9.652 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01267/16.63, allocations: 3.448 MB / 4.938 GB, free: 6.652 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.861e-05/16.63, allocations: 8 kB / 4.938 GB, free: 6.645 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.04154/16.67, allocations: 9.082 MB / 4.947 GB, free: 15.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000881/16.68, allocations: 0.99 MB / 4.948 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.743e-05/16.68, allocations: 28 kB / 4.948 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/16.69, allocations: 2.743 MB / 4.95 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008673/16.7, allocations: 0.9339 MB / 4.951 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01827/16.72, allocations: 6.7 MB / 4.958 GB, free: 5.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008927/16.73, allocations: 0.5376 MB / 4.958 GB, free: 4.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001983/16.73, allocations: 247.2 kB / 4.958 GB, free: 4.508 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/16.73, allocations: 7.953 kB / 4.958 GB, free: 4.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4587/17.19, allocations: 9.314 MB / 4.968 GB, free: 47.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.578e-05/17.19, allocations: 28.66 kB / 4.968 GB, free: 47.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01744/17.21, allocations: 2.576 MB / 4.97 GB, free: 47.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008648/17.22, allocations: 0.9634 MB / 4.971 GB, free: 47.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/17.23, allocations: 6.559 MB / 4.977 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007732/17.24, allocations: 0.5265 MB / 4.978 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001803/17.24, allocations: 241.1 kB / 4.978 GB, free: 44.38 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.004835/17.25, allocations: 1.102 MB / 4.979 GB, free: 44.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/17.25, allocations: 297.3 kB / 4.98 GB, free: 44.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03306/17.28, allocations: 8.653 MB / 4.988 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.398e-05/17.28, allocations: 44.33 kB / 4.988 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/17.28, allocations: 0 / 4.988 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02485/17.31, allocations: 6.76 MB / 4.995 GB, free: 43.53 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04634/17.35, allocations: 12.89 MB / 5.007 GB, free: 42.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.983e-05/17.35, allocations: 0 / 5.007 GB, free: 42.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007095/17.36, allocations: 0.7139 MB / 5.008 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02761/17.39, allocations: 3.119 MB / 5.011 GB, free: 42.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001524/17.39, allocations: 177.9 kB / 5.011 GB, free: 42.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/17.41, allocations: 6.32 MB / 5.017 GB, free: 39.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/17.41, allocations: 3.125 kB / 5.017 GB, free: 39.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04017/17.45, allocations: 11.18 MB / 5.028 GB, free: 39.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004486/17.45, allocations: 1.051 MB / 5.029 GB, free: 39.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002194/17.45, allocations: 131.2 kB / 5.029 GB, free: 39.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007568/17.46, allocations: 423.5 kB / 5.03 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/17.46, allocations: 258.4 kB / 5.03 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001105/17.46, allocations: 185.7 kB / 5.03 GB, free: 39.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003573/17.47, allocations: 1.398 MB / 5.032 GB, free: 38.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.523e-06/17.47, allocations: 2.625 kB / 5.032 GB, free: 38.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01722/17.48, allocations: 3.242 MB / 5.035 GB, free: 38.96 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.01346/17.5, allocations: 3.271 MB / 5.038 GB, free: 38.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03943/17.54, allocations: 11.35 MB / 5.049 GB, free: 37.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/17.54, allocations: 3.844 kB / 5.049 GB, free: 37.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01254/17.55, allocations: 3.444 MB / 5.052 GB, free: 37.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01193/17.56, allocations: 1.322 MB / 5.054 GB, free: 37.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/17.6, allocations: 11.74 MB / 5.065 GB, free: 34.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003797/17.6, allocations: 2.455 MB / 5.068 GB, free: 33.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003366/17.6, allocations: 405.1 kB / 5.068 GB, free: 33.73 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/17.6, allocations: 0 / 5.068 GB, free: 33.73 MB / 442.7 MB Notification: Performance of Templates: time 0.6548/18.26, allocations: 152.9 MB / 5.217 GB, free: 35.79 MB / 442.7 MB