Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.03/2.03, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.000357, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1032, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.62/11.72, allocations: 3.686 GB / 3.987 GB, free: 102.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/11.72, allocations: 97.31 kB / 3.987 GB, free: 102.9 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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 5.097/16.82, allocations: 0.8997 GB / 4.887 GB, free: 25.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.427e-06/16.82, allocations: 0 / 4.887 GB, free: 25.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003775/16.82, allocations: 80.09 kB / 4.887 GB, free: 25.63 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.02968/16.85, allocations: 6.315 MB / 4.893 GB, free: 22.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/16.85, allocations: 7.875 kB / 4.893 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003468/16.85, allocations: 409.8 kB / 4.894 GB, free: 22.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00989/16.86, allocations: 2.406 MB / 4.896 GB, free: 21.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005534/16.87, allocations: 370.2 kB / 4.896 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001947/16.87, allocations: 301.7 kB / 4.897 GB, free: 21.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/16.88, allocations: 5.308 MB / 4.902 GB, free: 21.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/16.88, allocations: 7.875 kB / 4.902 GB, free: 21.03 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008794/16.88, allocations: 136.4 kB / 4.902 GB, free: 21.03 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003924/16.89, allocations: 259.6 kB / 4.902 GB, free: 21.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/16.9, allocations: 5.61 MB / 4.908 GB, free: 20.95 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.05061/16.95, allocations: 20.46 MB / 4.928 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/16.96, allocations: 3.574 MB / 4.931 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003789/16.97, allocations: 3.222 MB / 4.934 GB, free: 24.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007418/16.97, allocations: 2.572 MB / 4.937 GB, free: 23.17 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00211/16.98, allocations: 280.3 kB / 4.937 GB, free: 22.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=316): time 1.036e-05/16.98, allocations: 0 / 4.937 GB, free: 22.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=376): time 0.228/17.21, allocations: 33.8 MB / 4.97 GB, free: 4.262 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002304/17.21, allocations: 321.7 kB / 4.97 GB, free: 3.879 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/17.21, allocations: 2.092 MB / 4.972 GB, free: 2.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001425/17.21, allocations: 100.3 kB / 4.973 GB, free: 1.988 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/17.21, allocations: 1.239 MB / 4.974 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3842/17.6, allocations: 1.318 MB / 4.975 GB, free: 41.25 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000837/17.6, allocations: 84.66 kB / 4.975 GB, free: 41.25 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003731/17.6, allocations: 486.7 kB / 4.976 GB, free: 40.93 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/17.61, allocations: 2.901 MB / 4.978 GB, free: 40.92 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01223/17.62, allocations: 3.913 MB / 4.982 GB, free: 39.84 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/17.64, allocations: 3.472 MB / 4.986 GB, free: 39.67 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.678e-05/17.64, allocations: 8.125 kB / 4.986 GB, free: 39.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.0451/17.68, allocations: 9.741 MB / 4.995 GB, free: 39.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007016/17.68, allocations: 1.004 MB / 4.996 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.553e-05/17.68, allocations: 25.31 kB / 4.996 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0181/17.7, allocations: 2.74 MB / 4.999 GB, free: 38.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008447/17.71, allocations: 0.9412 MB / 5 GB, free: 38.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/17.72, allocations: 6.704 MB / 5.006 GB, free: 35.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008424/17.73, allocations: 0.5349 MB / 5.007 GB, free: 35.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/17.73, allocations: 251.3 kB / 5.007 GB, free: 35.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/17.73, allocations: 5.781 kB / 5.007 GB, free: 35.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03512/17.77, allocations: 8.787 MB / 5.016 GB, free: 34.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/17.77, allocations: 27.22 kB / 5.016 GB, free: 34.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01655/17.79, allocations: 2.583 MB / 5.018 GB, free: 34.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008622/17.79, allocations: 0.9528 MB / 5.019 GB, free: 34.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01518/17.81, allocations: 6.558 MB / 5.026 GB, free: 31.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007294/17.82, allocations: 0.5227 MB / 5.026 GB, free: 31.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001298/17.82, allocations: 243.3 kB / 5.026 GB, free: 31.63 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.004173/17.82, allocations: 1.106 MB / 5.027 GB, free: 31.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/17.82, allocations: 301.8 kB / 5.028 GB, free: 31.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02967/17.85, allocations: 8.656 MB / 5.036 GB, free: 31.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.066e-05/17.85, allocations: 47.39 kB / 5.036 GB, free: 31.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/17.85, allocations: 0 / 5.036 GB, free: 31.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02293/17.88, allocations: 6.756 MB / 5.043 GB, free: 30.77 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04735/17.92, allocations: 13.32 MB / 5.056 GB, free: 30.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-05/17.92, allocations: 8.625 kB / 5.056 GB, free: 30.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007129/17.93, allocations: 0.701 MB / 5.056 GB, free: 30.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02174/17.95, allocations: 3.124 MB / 5.06 GB, free: 30.03 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001411/17.95, allocations: 183.8 kB / 5.06 GB, free: 30.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/17.97, allocations: 6.316 MB / 5.066 GB, free: 26.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/17.97, allocations: 4.062 kB / 5.066 GB, free: 26.91 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03717/18.01, allocations: 10.84 MB / 5.076 GB, free: 26.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004358/18.01, allocations: 1.052 MB / 5.077 GB, free: 26.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002144/18.01, allocations: 134.8 kB / 5.078 GB, free: 26.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007464/18.02, allocations: 418 kB / 5.078 GB, free: 26 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001414/18.02, allocations: 257.1 kB / 5.078 GB, free: 25.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001018/18.02, allocations: 195.3 kB / 5.078 GB, free: 25.94 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003406/18.03, allocations: 1.4 MB / 5.08 GB, free: 25.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.32e-07/18.03, allocations: 0 / 5.08 GB, free: 25.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01642/18.04, allocations: 3.258 MB / 5.083 GB, free: 25.08 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.01314/18.06, allocations: 3.337 MB / 5.086 GB, free: 24.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03773/18.09, allocations: 11.42 MB / 5.097 GB, free: 20.81 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/18.09, allocations: 0.9375 kB / 5.097 GB, free: 20.81 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01214/18.11, allocations: 3.456 MB / 5.101 GB, free: 19.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01166/18.12, allocations: 1.315 MB / 5.102 GB, free: 19.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03321/18.15, allocations: 11.76 MB / 5.114 GB, free: 10.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003315/18.15, allocations: 2.449 MB / 5.116 GB, free: 9.055 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003355/18.16, allocations: 409.3 kB / 5.116 GB, free: 8.707 MB / 474.7 MB Notification: Performance of SimCode: time 1.724e-06/18.16, allocations: 0 / 5.116 GB, free: 8.707 MB / 474.7 MB Notification: Performance of Templates: time 0.651/18.81, allocations: 153.8 MB / 5.266 GB, free: 29.82 MB / 490.7 MB