Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.565/1.565, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003538, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07058/0.07096, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.368/8.439, allocations: 3.681 GB / 3.946 GB, free: 110.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/8.44, allocations: 85.91 kB / 3.946 GB, free: 110.6 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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 4.856/13.3, allocations: 0.8939 GB / 4.84 GB, free: 21.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.714e-06/13.3, allocations: 0 / 4.84 GB, free: 21.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002952/13.3, allocations: 85.34 kB / 4.84 GB, free: 21.61 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.0241/13.32, allocations: 6.28 MB / 4.846 GB, free: 18.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/13.32, allocations: 9.938 kB / 4.846 GB, free: 18.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003115/13.32, allocations: 410.8 kB / 4.847 GB, free: 18.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008958/13.33, allocations: 2.41 MB / 4.849 GB, free: 17.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005376/13.33, allocations: 364.4 kB / 4.849 GB, free: 17.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001771/13.33, allocations: 301.1 kB / 4.85 GB, free: 17.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/13.35, allocations: 5.291 MB / 4.855 GB, free: 17.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/13.35, allocations: 16.53 kB / 4.855 GB, free: 17.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001596/13.35, allocations: 127 kB / 4.855 GB, free: 17.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003553/13.35, allocations: 259.9 kB / 4.855 GB, free: 17.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01508/13.37, allocations: 5.607 MB / 4.861 GB, free: 17.2 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.04394/13.41, allocations: 18.76 MB / 4.879 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009124/13.42, allocations: 3.544 MB / 4.883 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003029/13.42, allocations: 3.223 MB / 4.886 GB, free: 6.848 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006706/13.43, allocations: 2.554 MB / 4.888 GB, free: 6.672 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002217/13.43, allocations: 276.6 kB / 4.888 GB, free: 6.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 1.074e-05/13.43, allocations: 0 / 4.888 GB, free: 6.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.1637/13.6, allocations: 33.98 MB / 4.922 GB, free: 2.953 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/13.6, allocations: 357.1 kB / 4.922 GB, free: 2.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/13.6, allocations: 1.855 MB / 4.924 GB, free: 1.223 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/13.6, allocations: 101.7 kB / 4.924 GB, free: 1.117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/13.6, allocations: 1.235 MB / 4.925 GB, free: 15.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002426/13.61, allocations: 1.314 MB / 4.926 GB, free: 14.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008148/13.61, allocations: 88 kB / 4.926 GB, free: 14.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005151/13.61, allocations: 487.2 kB / 4.927 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008662/13.62, allocations: 2.886 MB / 4.93 GB, free: 11.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/13.63, allocations: 3.876 MB / 4.934 GB, free: 8.207 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/13.64, allocations: 3.456 MB / 4.937 GB, free: 5.203 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-05/13.64, allocations: 12 kB / 4.937 GB, free: 5.191 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.03788/13.67, allocations: 9.381 MB / 4.946 GB, free: 14.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005861/13.68, allocations: 10.65 MB / 4.956 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-05/13.68, allocations: 28 kB / 4.957 GB, free: 3.012 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01367/13.69, allocations: 2.746 MB / 4.959 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006043/13.7, allocations: 0.9373 MB / 4.96 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3229/14.02, allocations: 6.696 MB / 4.967 GB, free: 45.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00649/14.03, allocations: 0.532 MB / 4.967 GB, free: 45.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/14.03, allocations: 244.9 kB / 4.967 GB, free: 45.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/14.03, allocations: 5.938 kB / 4.967 GB, free: 45.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03069/14.06, allocations: 8.78 MB / 4.976 GB, free: 45.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/14.06, allocations: 28.28 kB / 4.976 GB, free: 45.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01163/14.07, allocations: 2.577 MB / 4.979 GB, free: 45.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005959/14.08, allocations: 0.9629 MB / 4.979 GB, free: 45.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/14.09, allocations: 6.559 MB / 4.986 GB, free: 42.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00571/14.1, allocations: 0.5271 MB / 4.986 GB, free: 42.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/14.1, allocations: 239.9 kB / 4.987 GB, free: 42.39 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.004287/14.1, allocations: 1.1 MB / 4.988 GB, free: 42.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/14.11, allocations: 297.3 kB / 4.988 GB, free: 42.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02759/14.13, allocations: 8.661 MB / 4.996 GB, free: 41.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-05/14.13, allocations: 44.31 kB / 4.996 GB, free: 41.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/14.13, allocations: 0.5625 kB / 4.996 GB, free: 41.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02074/14.15, allocations: 6.751 MB / 5.003 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03784/14.19, allocations: 12.9 MB / 5.016 GB, free: 40.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-05/14.19, allocations: 7.062 kB / 5.016 GB, free: 40.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004949/14.2, allocations: 0.7001 MB / 5.016 GB, free: 40.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01536/14.21, allocations: 3.117 MB / 5.019 GB, free: 40.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/14.21, allocations: 186 kB / 5.02 GB, free: 40.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/14.23, allocations: 6.32 MB / 5.026 GB, free: 37.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.535e-06/14.23, allocations: 6.297 kB / 5.026 GB, free: 37.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03207/14.26, allocations: 11.26 MB / 5.037 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003823/14.26, allocations: 1.051 MB / 5.038 GB, free: 36.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/14.26, allocations: 137.1 kB / 5.038 GB, free: 36.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005528/14.27, allocations: 420.1 kB / 5.038 GB, free: 36.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001315/14.27, allocations: 257.6 kB / 5.039 GB, free: 36.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00116/14.27, allocations: 185.9 kB / 5.039 GB, free: 36.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003436/14.27, allocations: 1.402 MB / 5.04 GB, free: 36.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.057e-06/14.27, allocations: 0 / 5.04 GB, free: 36.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01554/14.29, allocations: 3.243 MB / 5.043 GB, free: 36.82 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.01181/14.3, allocations: 3.257 MB / 5.046 GB, free: 36.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03161/14.33, allocations: 11.35 MB / 5.058 GB, free: 35.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/14.33, allocations: 0.9375 kB / 5.058 GB, free: 35.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01023/14.34, allocations: 3.447 MB / 5.061 GB, free: 34.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008757/14.35, allocations: 1.334 MB / 5.062 GB, free: 34.35 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02895/14.38, allocations: 11.71 MB / 5.074 GB, free: 29.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004025/14.39, allocations: 2.451 MB / 5.076 GB, free: 28.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002956/14.39, allocations: 406 kB / 5.076 GB, free: 28.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.871e-06/14.39, allocations: 0 / 5.076 GB, free: 28.5 MB / 442.7 MB Notification: Performance of Templates: time 0.5384/14.93, allocations: 152.9 MB / 5.226 GB, free: 27.21 MB / 442.7 MB