Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003823, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08467, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.364/8.449, allocations: 3.686 GB / 3.987 GB, free: 129.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/8.449, allocations: 87.8 kB / 3.987 GB, free: 129.4 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 4.423/12.87, allocations: 0.8997 GB / 4.887 GB, free: 27.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.201e-06/12.87, allocations: 0 / 4.887 GB, free: 27.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002882/12.87, allocations: 83.77 kB / 4.887 GB, free: 27.91 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.02381/12.9, allocations: 6.31 MB / 4.893 GB, free: 24.65 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/12.9, allocations: 9.469 kB / 4.893 GB, free: 24.65 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002992/12.9, allocations: 411.8 kB / 4.893 GB, free: 24.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008367/12.91, allocations: 2.408 MB / 4.896 GB, free: 23.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004984/12.91, allocations: 356.2 kB / 4.896 GB, free: 23.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001643/12.91, allocations: 305.9 kB / 4.896 GB, free: 23.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/12.93, allocations: 5.285 MB / 4.901 GB, free: 23.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/12.93, allocations: 14.73 kB / 4.901 GB, free: 23.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001394/12.93, allocations: 129 kB / 4.901 GB, free: 23.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003246/12.93, allocations: 263.5 kB / 4.902 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01481/12.94, allocations: 5.614 MB / 4.907 GB, free: 23.1 MB / 458.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.04214/12.98, allocations: 20.45 MB / 4.927 GB, free: 12.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008769/12.99, allocations: 3.561 MB / 4.931 GB, free: 11.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002935/13, allocations: 3.22 MB / 4.934 GB, free: 7.887 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006737/13, allocations: 2.56 MB / 4.936 GB, free: 6.98 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002202/13.01, allocations: 285.2 kB / 4.937 GB, free: 6.777 MB / 458.7 MB Notification: Performance of pre-optimization done (n=316): time 9.418e-06/13.01, allocations: 7.875 kB / 4.937 GB, free: 6.773 MB / 458.7 MB Notification: Performance of matching and sorting (n=376): time 0.5266/13.53, allocations: 34.03 MB / 4.97 GB, free: 42.85 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/13.53, allocations: 324.3 kB / 4.97 GB, free: 42.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004125/13.54, allocations: 1.863 MB / 4.972 GB, free: 42.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/13.54, allocations: 97.89 kB / 4.972 GB, free: 42.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/13.54, allocations: 1.24 MB / 4.973 GB, free: 41.72 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001891/13.54, allocations: 1.321 MB / 4.975 GB, free: 41.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005285/13.54, allocations: 88.06 kB / 4.975 GB, free: 41.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002943/13.54, allocations: 490.5 kB / 4.975 GB, free: 40.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00807/13.55, allocations: 2.898 MB / 4.978 GB, free: 40.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008964/13.56, allocations: 3.905 MB / 4.982 GB, free: 39.65 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008564/13.57, allocations: 3.465 MB / 4.985 GB, free: 39.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-05/13.57, allocations: 7.781 kB / 4.985 GB, free: 39.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.03144/13.6, allocations: 9.742 MB / 4.995 GB, free: 39.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002186/13.6, allocations: 10.75 MB / 5.005 GB, free: 27.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.658e-05/13.6, allocations: 28.22 kB / 5.005 GB, free: 27.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/13.61, allocations: 2.739 MB / 5.008 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006177/13.62, allocations: 0.9399 MB / 5.009 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/13.63, allocations: 6.707 MB / 5.015 GB, free: 24.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006335/13.64, allocations: 0.54 MB / 5.016 GB, free: 24.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/13.64, allocations: 243.7 kB / 5.016 GB, free: 24.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/13.64, allocations: 5.281 kB / 5.016 GB, free: 24.73 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02833/13.67, allocations: 8.793 MB / 5.025 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/13.67, allocations: 26.16 kB / 5.025 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01287/13.68, allocations: 2.574 MB / 5.027 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005792/13.69, allocations: 0.955 MB / 5.028 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/13.7, allocations: 6.561 MB / 5.035 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00569/13.71, allocations: 0.5193 MB / 5.035 GB, free: 21.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/13.71, allocations: 244.4 kB / 5.035 GB, free: 21.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 122 * Number of states: 0 () * Number of discrete variables: 16 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],NumberOfPeople.nextTimeEvent,$PRE.NumberOfPeople.nextTimeEventScaled,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (499): * Single equations (assignments): 489 * 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.003898/13.71, allocations: 1.102 MB / 5.036 GB, free: 21.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/13.71, allocations: 307 kB / 5.037 GB, free: 20.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02511/13.74, allocations: 8.659 MB / 5.045 GB, free: 20.62 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.581e-05/13.74, allocations: 40.44 kB / 5.045 GB, free: 20.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/13.74, allocations: 6.188 kB / 5.045 GB, free: 20.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01866/13.76, allocations: 6.75 MB / 5.052 GB, free: 20.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03765/13.79, allocations: 13.32 MB / 5.065 GB, free: 19.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.845e-05/13.79, allocations: 3.875 kB / 5.065 GB, free: 19.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005353/13.8, allocations: 0.7125 MB / 5.065 GB, free: 19.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01669/13.82, allocations: 3.112 MB / 5.069 GB, free: 19.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/13.82, allocations: 180.3 kB / 5.069 GB, free: 19.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/13.83, allocations: 6.316 MB / 5.075 GB, free: 16.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/13.83, allocations: 5.219 kB / 5.075 GB, free: 16.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03045/13.86, allocations: 10.94 MB / 5.086 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003773/13.86, allocations: 1.055 MB / 5.087 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00165/13.86, allocations: 132.9 kB / 5.087 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005251/13.87, allocations: 418.3 kB / 5.087 GB, free: 12.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/13.87, allocations: 257.1 kB / 5.087 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008224/13.87, allocations: 182.9 kB / 5.088 GB, free: 12.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003054/13.87, allocations: 1.408 MB / 5.089 GB, free: 11.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.63e-07/13.87, allocations: 0 / 5.089 GB, free: 11.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01457/13.89, allocations: 3.258 MB / 5.092 GB, free: 11.38 MB / 474.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: 3 ($whenCondition1,NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 361 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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.01176/13.9, allocations: 3.326 MB / 5.095 GB, free: 10.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03102/13.93, allocations: 11.43 MB / 5.106 GB, free: 7.035 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/13.93, allocations: 4.938 kB / 5.106 GB, free: 7.031 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0092/13.94, allocations: 3.455 MB / 5.11 GB, free: 4.172 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00777/13.95, allocations: 1.331 MB / 5.111 GB, free: 3.246 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02855/13.98, allocations: 11.74 MB / 5.123 GB, free: 9.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004263/13.98, allocations: 2.457 MB / 5.125 GB, free: 7.348 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/13.99, allocations: 397.4 kB / 5.125 GB, free: 7.008 MB / 490.7 MB Notification: Performance of SimCode: time 2.154e-06/13.99, allocations: 0 / 5.125 GB, free: 7.008 MB / 490.7 MB Notification: Performance of Templates: time 0.6167/14.6, allocations: 154.6 MB / 5.276 GB, free: 18.38 MB / 490.7 MB