Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.2 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.000352, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08631, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.14/11.23, allocations: 3.681 GB / 3.947 GB, free: 97.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/11.23, allocations: 88.38 kB / 3.947 GB, free: 97.29 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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 5.618/16.84, allocations: 0.8939 GB / 4.841 GB, free: 21.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.145e-06/16.84, allocations: 0.9062 kB / 4.841 GB, free: 21.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003674/16.85, allocations: 81.94 kB / 4.841 GB, free: 21.46 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.03019/16.88, allocations: 6.289 MB / 4.847 GB, free: 18.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/16.88, allocations: 7.312 kB / 4.847 GB, free: 18.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003671/16.88, allocations: 412.2 kB / 4.847 GB, free: 18.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/16.89, allocations: 2.412 MB / 4.85 GB, free: 17.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006074/16.89, allocations: 357.2 kB / 4.85 GB, free: 17.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002103/16.89, allocations: 311 kB / 4.85 GB, free: 17.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/16.91, allocations: 5.287 MB / 4.856 GB, free: 17.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/16.91, allocations: 5.812 kB / 4.856 GB, free: 17.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001921/16.91, allocations: 133.9 kB / 4.856 GB, free: 17.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004567/16.91, allocations: 262.9 kB / 4.856 GB, free: 17.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01842/16.93, allocations: 5.604 MB / 4.861 GB, free: 17.09 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.06894/17, allocations: 18.77 MB / 4.88 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/17.02, allocations: 3.538 MB / 4.883 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003512/17.02, allocations: 3.222 MB / 4.886 GB, free: 6.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008064/17.03, allocations: 2.556 MB / 4.889 GB, free: 6.562 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002852/17.03, allocations: 285 kB / 4.889 GB, free: 6.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 1.57e-05/17.03, allocations: 0 / 4.889 GB, free: 6.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.2432/17.28, allocations: 33.99 MB / 4.922 GB, free: 3.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003691/17.28, allocations: 349.9 kB / 4.923 GB, free: 18.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004849/17.28, allocations: 2.083 MB / 4.925 GB, free: 18.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001411/17.28, allocations: 104.9 kB / 4.925 GB, free: 18.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/17.28, allocations: 1.306 MB / 4.926 GB, free: 16.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002323/17.29, allocations: 1.31 MB / 4.927 GB, free: 15.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009949/17.29, allocations: 89.12 kB / 4.927 GB, free: 15.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004769/17.29, allocations: 480.1 kB / 4.928 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01106/17.3, allocations: 2.889 MB / 4.931 GB, free: 12.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01276/17.31, allocations: 3.879 MB / 4.934 GB, free: 9.152 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/17.32, allocations: 3.451 MB / 4.938 GB, free: 6.152 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.134e-05/17.32, allocations: 8 kB / 4.938 GB, free: 6.145 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.04159/17.37, allocations: 9.205 MB / 4.947 GB, free: 14.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001002/17.37, allocations: 0.9922 MB / 4.948 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.388e-05/17.37, allocations: 28 kB / 4.948 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01916/17.39, allocations: 2.74 MB / 4.95 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008859/17.4, allocations: 0.9309 MB / 4.951 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/17.41, allocations: 6.706 MB / 4.958 GB, free: 4.527 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008919/17.42, allocations: 0.5508 MB / 4.958 GB, free: 4.117 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/17.42, allocations: 245.1 kB / 4.959 GB, free: 3.906 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/17.42, allocations: 4 kB / 4.959 GB, free: 3.902 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4413/17.87, allocations: 9.549 MB / 4.968 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.299e-05/17.87, allocations: 28.28 kB / 4.968 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01724/17.88, allocations: 2.586 MB / 4.971 GB, free: 47.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008722/17.89, allocations: 0.9516 MB / 4.972 GB, free: 47.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/17.91, allocations: 6.562 MB / 4.978 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008716/17.92, allocations: 0.5287 MB / 4.978 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001907/17.92, allocations: 244.7 kB / 4.979 GB, free: 44.29 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.005188/17.92, allocations: 1.106 MB / 4.98 GB, free: 44.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001954/17.93, allocations: 295.2 kB / 4.98 GB, free: 44.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03675/17.96, allocations: 8.656 MB / 4.988 GB, free: 43.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.736e-05/17.96, allocations: 51.02 kB / 4.989 GB, free: 43.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.136e-05/17.96, allocations: 0 / 4.989 GB, free: 43.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02697/17.99, allocations: 6.752 MB / 4.995 GB, free: 43.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04978/18.04, allocations: 12.89 MB / 5.008 GB, free: 42.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.175e-05/18.04, allocations: 3.562 kB / 5.008 GB, free: 42.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007231/18.05, allocations: 0.7035 MB / 5.008 GB, free: 42.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02177/18.07, allocations: 3.12 MB / 5.011 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001484/18.07, allocations: 181.3 kB / 5.012 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/18.09, allocations: 6.312 MB / 5.018 GB, free: 39.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/18.09, allocations: 9.922 kB / 5.018 GB, free: 39.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04013/18.13, allocations: 11.18 MB / 5.029 GB, free: 39.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00443/18.13, allocations: 1.049 MB / 5.03 GB, free: 39.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001855/18.13, allocations: 139.4 kB / 5.03 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007331/18.14, allocations: 422.2 kB / 5.03 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001423/18.14, allocations: 251.3 kB / 5.031 GB, free: 39.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007801/18.14, allocations: 188.6 kB / 5.031 GB, free: 39.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003542/18.15, allocations: 1.397 MB / 5.032 GB, free: 38.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.61e-07/18.15, allocations: 0 / 5.032 GB, free: 38.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01752/18.16, allocations: 3.246 MB / 5.035 GB, free: 38.87 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.01399/18.18, allocations: 3.26 MB / 5.038 GB, free: 38.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.05254/18.23, allocations: 11.35 MB / 5.05 GB, free: 37.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/18.23, allocations: 0.9375 kB / 5.05 GB, free: 37.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01692/18.25, allocations: 3.446 MB / 5.053 GB, free: 37.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01525/18.26, allocations: 1.321 MB / 5.054 GB, free: 37.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03654/18.3, allocations: 11.55 MB / 5.065 GB, free: 34.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005251/18.3, allocations: 2.469 MB / 5.068 GB, free: 33.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01691/18.32, allocations: 2.536 MB / 5.07 GB, free: 33.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003702/18.32, allocations: 345.7 kB / 5.071 GB, free: 33.42 MB / 442.7 MB Notification: Performance of SimCode: time 1.673e-06/18.32, allocations: 3.281 kB / 5.071 GB, free: 33.42 MB / 442.7 MB Notification: Performance of Templates: time 0.734/19.06, allocations: 123.3 MB / 5.191 GB, free: 46.19 MB / 442.7 MB