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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.553/1.553, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.779e-05/3.805e-05, allocations: 0 / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06781/0.06791, allocations: 38.77 MB / 261.3 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.736/8.804, allocations: 3.68 GB / 3.935 GB, free: 89.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/8.804, allocations: 85.73 kB / 3.935 GB, free: 89.31 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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.45/13.25, allocations: 0.8842 GB / 4.819 GB, free: 12.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.345e-06/13.25, allocations: 3.938 kB / 4.819 GB, free: 12.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003026/13.25, allocations: 81.58 kB / 4.819 GB, free: 12.56 MB / 394.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.0228/13.28, allocations: 5.994 MB / 4.825 GB, free: 9.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/13.28, allocations: 10.41 kB / 4.825 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003031/13.28, allocations: 411.4 kB / 4.826 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008356/13.29, allocations: 2.397 MB / 4.828 GB, free: 8.738 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003944/13.29, allocations: 254.4 kB / 4.828 GB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001636/13.29, allocations: 182 kB / 4.828 GB, free: 8.602 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01255/13.3, allocations: 5.102 MB / 4.833 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/13.32, allocations: 4.795 MB / 4.838 GB, free: 8.008 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001549/13.32, allocations: 10.38 kB / 4.838 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/13.32, allocations: 11.67 kB / 4.838 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003152/13.32, allocations: 261.9 kB / 4.838 GB, free: 7.992 MB / 394.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.04237/13.36, allocations: 18.63 MB / 4.856 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007716/13.37, allocations: 3.287 MB / 4.86 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004433/13.37, allocations: 2.089 MB / 4.862 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003584/13.38, allocations: 2.719 MB / 4.864 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005992/13.38, allocations: 2.404 MB / 4.867 GB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002071/13.39, allocations: 192.8 kB / 4.867 GB, free: 9.523 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 1.815e-05/13.39, allocations: 3.703 kB / 4.867 GB, free: 9.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=368): time 0.4161/13.8, allocations: 24.37 MB / 4.891 GB, free: 25.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/13.8, allocations: 486.6 kB / 4.891 GB, free: 25.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/13.81, allocations: 1.431 MB / 4.893 GB, free: 24.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001074/13.81, allocations: 32.92 kB / 4.893 GB, free: 24.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/13.81, allocations: 1.291 MB / 4.894 GB, free: 24.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002073/13.81, allocations: 1.247 MB / 4.895 GB, free: 23.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005643/13.81, allocations: 1.625 kB / 4.895 GB, free: 23.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003623/13.81, allocations: 490.8 kB / 4.896 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005947/13.82, allocations: 2.508 MB / 4.898 GB, free: 23.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007036/13.82, allocations: 3.503 MB / 4.901 GB, free: 22.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01844/13.84, allocations: 4.5 MB / 4.906 GB, free: 22.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.762e-05/13.84, allocations: 7.562 kB / 4.906 GB, free: 22.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.03412/13.88, allocations: 9.264 MB / 4.915 GB, free: 22.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002285/13.88, allocations: 10.67 MB / 4.925 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/13.88, allocations: 27.59 kB / 4.925 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007388/13.89, allocations: 1.99 MB / 4.927 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005673/13.89, allocations: 0.9344 MB / 4.928 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008522/13.9, allocations: 6.116 MB / 4.934 GB, free: 23.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006512/13.91, allocations: 472.5 kB / 4.935 GB, free: 23.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/13.91, allocations: 244.5 kB / 4.935 GB, free: 23.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/13.91, allocations: 5.625 kB / 4.935 GB, free: 23.73 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03606/13.95, allocations: 9.401 MB / 4.944 GB, free: 23.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/13.95, allocations: 25.69 kB / 4.944 GB, free: 23.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00679/13.95, allocations: 1.92 MB / 4.946 GB, free: 23.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005754/13.96, allocations: 0.9604 MB / 4.947 GB, free: 23.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008064/13.97, allocations: 5.921 MB / 4.953 GB, free: 20.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005802/13.97, allocations: 457.7 kB / 4.953 GB, free: 20.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/13.97, allocations: 238.9 kB / 4.953 GB, free: 20.41 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.001805/13.98, allocations: 218.4 kB / 4.953 GB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/13.98, allocations: 278.7 kB / 4.954 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02451/14, allocations: 7.735 MB / 4.961 GB, free: 19.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.63e-05/14, allocations: 40.06 kB / 4.961 GB, free: 19.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/14, allocations: 0 / 4.961 GB, free: 19.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01839/14.02, allocations: 6.084 MB / 4.967 GB, free: 19.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03651/14.06, allocations: 12.57 MB / 4.98 GB, free: 18.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.177e-05/14.06, allocations: 5.469 kB / 4.98 GB, free: 18.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004637/14.06, allocations: 0.6891 MB / 4.98 GB, free: 18.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009763/14.07, allocations: 2.382 MB / 4.983 GB, free: 18.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001116/14.07, allocations: 129.7 kB / 4.983 GB, free: 18.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007992/14.08, allocations: 5.828 MB / 4.988 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/14.08, allocations: 3 kB / 4.988 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02776/14.11, allocations: 10.46 MB / 4.999 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003492/14.11, allocations: 1.013 MB / 5 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/14.11, allocations: 74.12 kB / 5 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005135/14.12, allocations: 348.3 kB / 5 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/14.12, allocations: 252.4 kB / 5 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006622/14.12, allocations: 181.3 kB / 5 GB, free: 12.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002167/14.12, allocations: 1.065 MB / 5.001 GB, free: 11.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-06/14.12, allocations: 0 / 5.001 GB, free: 11.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01434/14.14, allocations: 2.963 MB / 5.004 GB, free: 11.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (363): * Single equations (assignments): 352 * 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.01098/14.15, allocations: 3.363 MB / 5.008 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02428/14.17, allocations: 10.05 MB / 5.017 GB, free: 3.695 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/14.17, allocations: 8.781 kB / 5.017 GB, free: 3.688 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008022/14.18, allocations: 3.021 MB / 5.02 GB, free: 1.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007627/14.19, allocations: 1.144 MB / 5.021 GB, free: 308 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02777/14.21, allocations: 8.842 MB / 5.03 GB, free: 9.902 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003563/14.22, allocations: 2.453 MB / 5.033 GB, free: 7.977 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/14.22, allocations: 388.5 kB / 5.033 GB, free: 7.648 MB / 442.7 MB Notification: Performance of SimCode: time 1.809e-06/14.22, allocations: 0 / 5.033 GB, free: 7.648 MB / 442.7 MB Notification: Performance of Templates: time 0.5312/14.75, allocations: 151.4 MB / 5.181 GB, free: 10.35 MB / 442.7 MB