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.605/1.605, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.81e-05/2.83e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.207, allocations: 38.77 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.51/8.717, allocations: 3.68 GB / 3.942 GB, free: 49.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/8.717, allocations: 84.69 kB / 3.942 GB, free: 49.28 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.707/13.42, allocations: 0.8925 GB / 4.834 GB, free: 21.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.305e-06/13.42, allocations: 0 / 4.834 GB, free: 21.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003052/13.42, allocations: 85.55 kB / 4.834 GB, free: 21.58 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.02315/13.45, allocations: 5.995 MB / 4.84 GB, free: 18.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/13.45, allocations: 7.594 kB / 4.84 GB, free: 18.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003121/13.45, allocations: 407.4 kB / 4.841 GB, free: 18.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008811/13.46, allocations: 2.415 MB / 4.843 GB, free: 17.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004776/13.46, allocations: 357.1 kB / 4.843 GB, free: 17.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001652/13.46, allocations: 302.2 kB / 4.844 GB, free: 17.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/13.48, allocations: 5.208 MB / 4.849 GB, free: 16.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001662/13.48, allocations: 7.438 kB / 4.849 GB, free: 16.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001466/13.48, allocations: 133.8 kB / 4.849 GB, free: 16.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003337/13.48, allocations: 256 kB / 4.849 GB, free: 16.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/13.49, allocations: 5.496 MB / 4.854 GB, free: 13.17 MB / 410.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.04279/13.54, allocations: 18.78 MB / 4.873 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009682/13.55, allocations: 3.469 MB / 4.876 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005578/13.55, allocations: 2.191 MB / 4.878 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00415/13.56, allocations: 3.217 MB / 4.881 GB, free: 2.402 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3155/13.87, allocations: 2.509 MB / 4.884 GB, free: 37.35 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00234/13.87, allocations: 273.5 kB / 4.884 GB, free: 37.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=314): time 1.422e-05/13.87, allocations: 0.6875 kB / 4.884 GB, free: 37.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.1477/14.02, allocations: 30.09 MB / 4.914 GB, free: 36.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/14.02, allocations: 351.5 kB / 4.914 GB, free: 35.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/14.03, allocations: 1.834 MB / 4.916 GB, free: 35.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001143/14.03, allocations: 99.67 kB / 4.916 GB, free: 35.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/14.03, allocations: 1.237 MB / 4.917 GB, free: 34.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00201/14.03, allocations: 1.312 MB / 4.918 GB, free: 34.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006093/14.03, allocations: 84.28 kB / 4.918 GB, free: 34.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000351/14.03, allocations: 486.9 kB / 4.919 GB, free: 33.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006301/14.04, allocations: 2.576 MB / 4.921 GB, free: 33.97 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007276/14.04, allocations: 3.562 MB / 4.925 GB, free: 32.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/14.05, allocations: 3.146 MB / 4.928 GB, free: 32.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.76e-05/14.05, allocations: 6.75 kB / 4.928 GB, free: 32.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.0253/14.08, allocations: 8.165 MB / 4.936 GB, free: 32.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002377/14.08, allocations: 10.67 MB / 4.946 GB, free: 21.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/14.08, allocations: 31.17 kB / 4.946 GB, free: 21.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008951/14.09, allocations: 2.141 MB / 4.948 GB, free: 21.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006368/14.1, allocations: 0.9366 MB / 4.949 GB, free: 21.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007571/14.1, allocations: 5.925 MB / 4.955 GB, free: 18.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007083/14.11, allocations: 0.539 MB / 4.956 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001518/14.11, allocations: 243.9 kB / 4.956 GB, free: 18.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/14.11, allocations: 8.406 kB / 4.956 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02321/14.13, allocations: 7.879 MB / 4.964 GB, free: 17.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/14.13, allocations: 26.5 kB / 4.964 GB, free: 17.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008381/14.14, allocations: 1.984 MB / 4.965 GB, free: 17.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006181/14.15, allocations: 0.9602 MB / 4.966 GB, free: 17.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007084/14.16, allocations: 5.791 MB / 4.972 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005996/14.16, allocations: 0.5237 MB / 4.973 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0015/14.16, allocations: 243.3 kB / 4.973 GB, free: 14.6 MB / 426.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 () * 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.001956/14.17, allocations: 354.4 kB / 4.973 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/14.17, allocations: 301.2 kB / 4.973 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02172/14.19, allocations: 7.84 MB / 4.981 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.44e-05/14.19, allocations: 41.72 kB / 4.981 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/14.19, allocations: 3.953 kB / 4.981 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01506/14.2, allocations: 5.928 MB / 4.987 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03976/14.24, allocations: 13.47 MB / 5 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-05/14.24, allocations: 4.219 kB / 5 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005362/14.25, allocations: 0.7044 MB / 5.001 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01215/14.26, allocations: 2.548 MB / 5.003 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/14.26, allocations: 177.2 kB / 5.003 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006708/14.27, allocations: 5.61 MB / 5.009 GB, free: 6.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.635e-06/14.27, allocations: 5.062 kB / 5.009 GB, free: 6.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03675/14.31, allocations: 11.06 MB / 5.02 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004196/14.31, allocations: 1.046 MB / 5.021 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001719/14.31, allocations: 138.8 kB / 5.021 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005446/14.32, allocations: 418.9 kB / 5.021 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001282/14.32, allocations: 261.5 kB / 5.022 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001181/14.32, allocations: 184.6 kB / 5.022 GB, free: 14.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003748/14.32, allocations: 1.375 MB / 5.023 GB, free: 12.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.155e-06/14.32, allocations: 1.406 kB / 5.023 GB, free: 12.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01838/14.34, allocations: 3.244 MB / 5.026 GB, free: 10.14 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) * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01193/14.35, allocations: 3.236 MB / 5.029 GB, free: 8.211 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02839/14.38, allocations: 10.44 MB / 5.04 GB, free: 14.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/14.38, allocations: 1.062 kB / 5.04 GB, free: 14.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009218/14.39, allocations: 3.157 MB / 5.043 GB, free: 12.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00886/14.4, allocations: 1.33 MB / 5.044 GB, free: 11.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02705/14.43, allocations: 8.912 MB / 5.053 GB, free: 3.762 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004419/14.43, allocations: 2.451 MB / 5.055 GB, free: 1.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002902/14.44, allocations: 403.9 kB / 5.055 GB, free: 1.492 MB / 458.7 MB Notification: Performance of SimCode: time 2.086e-06/14.44, allocations: 4 kB / 5.055 GB, free: 1.488 MB / 458.7 MB Notification: Performance of Templates: time 0.5335/14.97, allocations: 152.7 MB / 5.205 GB, free: 7.66 MB / 458.7 MB