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.876/1.876, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 16 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0797/0.08009, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.5187/0.5988, allocations: 206.3 MB / 0.5026 GB, free: 12.85 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03497/0.6338, allocations: 17.87 MB / 0.52 GB, free: 10.95 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.6367, allocations: 75.44 kB / 0.5201 GB, free: 10.87 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003387/0.6401, allocations: 0.9295 MB / 0.521 GB, free: 9.938 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01646/0.6566, allocations: 4.368 MB / 0.5253 GB, free: 5.559 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.6722, allocations: 4.323 MB / 0.5295 GB, free: 1.227 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.3086/0.9809, allocations: 5.199 MB / 0.5346 GB, free: 5.879 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003756/0.9847, allocations: 1.79 MB / 0.5363 GB, free: 5.734 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01199/0.9967, allocations: 4.207 MB / 0.5404 GB, free: 5.695 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004855/1.002, allocations: 2.196 MB / 0.5426 GB, free: 5.684 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001007/1.003, allocations: 170.8 kB / 0.5427 GB, free: 5.684 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01827/1.021, allocations: 8.228 MB / 0.5507 GB, free: 5.676 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002726/1.024, allocations: 1.524 MB / 0.5522 GB, free: 5.676 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001628/1.025, allocations: 0.701 MB / 0.5529 GB, free: 5.645 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/1.039, allocations: 6.719 MB / 0.5595 GB, free: 5.156 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.801e-06/1.039, allocations: 0.875 kB / 0.5595 GB, free: 5.156 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.85e-06/1.039, allocations: 2.766 kB / 0.5595 GB, free: 5.156 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001118/1.039, allocations: 0 / 0.5595 GB, free: 5.156 MB / 426.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.01355/1.052, allocations: 4.633 MB / 0.564 GB, free: 18.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/1.053, allocations: 13.62 kB / 0.564 GB, free: 18.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/1.055, allocations: 407.7 kB / 0.5644 GB, free: 18.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005148/1.06, allocations: 1.963 MB / 0.5663 GB, free: 17.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004054/1.06, allocations: 357.2 kB / 0.5667 GB, free: 17.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009282/1.061, allocations: 289.1 kB / 0.5669 GB, free: 17.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/1.073, allocations: 5.359 MB / 0.5722 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/1.073, allocations: 14.58 kB / 0.5722 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005617/1.074, allocations: 124.2 kB / 0.5723 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005248/1.074, allocations: 400.1 kB / 0.5727 GB, free: 15.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/1.088, allocations: 5.665 MB / 0.5782 GB, free: 14.68 MB / 442.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.0441/1.132, allocations: 21.96 MB / 0.5997 GB, free: 12.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00901/1.141, allocations: 3.624 MB / 0.6032 GB, free: 9.953 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00376/1.145, allocations: 3.208 MB / 0.6063 GB, free: 6.184 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006148/1.151, allocations: 2.592 MB / 0.6089 GB, free: 4.266 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001515/1.153, allocations: 270.2 kB / 0.6091 GB, free: 4.043 MB / 458.7 MB Notification: Performance of pre-optimization done (n=316): time 7.411e-06/1.153, allocations: 0 / 0.6091 GB, free: 4.043 MB / 458.7 MB Notification: Performance of matching and sorting (n=376): time 0.1551/1.308, allocations: 33.47 MB / 0.6418 GB, free: 7.566 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002453/1.308, allocations: 328.3 kB / 0.6421 GB, free: 7.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004081/1.312, allocations: 2.09 MB / 0.6442 GB, free: 5.574 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000971/1.313, allocations: 98.14 kB / 0.6443 GB, free: 5.523 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/1.315, allocations: 1.252 MB / 0.6455 GB, free: 4.633 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002287/1.317, allocations: 1.321 MB / 0.6468 GB, free: 3.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005569/1.318, allocations: 86.5 kB / 0.6469 GB, free: 3.484 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004555/1.318, allocations: 491.1 kB / 0.6473 GB, free: 3.059 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008387/1.327, allocations: 2.918 MB / 0.6502 GB, free: 1.016 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009841/1.337, allocations: 3.977 MB / 0.6541 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00959/1.346, allocations: 3.492 MB / 0.6575 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.985e-05/1.346, allocations: 8 kB / 0.6575 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=550) (initialization): time 0.02702/1.373, allocations: 8.516 MB / 0.6658 GB, free: 5.156 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001072/1.375, allocations: 1.044 MB / 0.6668 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.464e-05/1.375, allocations: 28 kB / 0.6668 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01384/1.388, allocations: 2.736 MB / 0.6695 GB, free: 1.395 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005829/1.394, allocations: 0.9457 MB / 0.6704 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/1.409, allocations: 6.693 MB / 0.677 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006231/1.415, allocations: 0.5348 MB / 0.6775 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/1.416, allocations: 252 kB / 0.6777 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.416, allocations: 4.938 kB / 0.6777 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02585/1.442, allocations: 8.225 MB / 0.6858 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001246/1.442, allocations: 28 kB / 0.6858 GB, free: 4.168 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/1.455, allocations: 2.571 MB / 0.6883 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005864/1.461, allocations: 0.9496 MB / 0.6892 GB, free: 1.074 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/1.475, allocations: 6.554 MB / 0.6956 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/1.48, allocations: 0.5237 MB / 0.6962 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001383/1.482, allocations: 241.2 kB / 0.6964 GB, free: 10.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * 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 (505): * Single equations (assignments): 495 * 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.00359/1.485, allocations: 1.114 MB / 0.6975 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.486, allocations: 296.4 kB / 0.6978 GB, free: 9.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02603/1.512, allocations: 8.718 MB / 0.7063 GB, free: 3.363 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.247e-05/1.513, allocations: 41.5 kB / 0.7063 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.513, allocations: 4 kB / 0.7063 GB, free: 3.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01936/1.532, allocations: 6.817 MB / 0.713 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03435/1.566, allocations: 13.02 MB / 0.7257 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/1.566, allocations: 8.031 kB / 0.7257 GB, free: 5.137 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004673/1.571, allocations: 0.6982 MB / 0.7264 GB, free: 4.496 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01586/1.587, allocations: 3.119 MB / 0.7294 GB, free: 1.691 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/1.588, allocations: 183.6 kB / 0.7296 GB, free: 1.578 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.234/1.822, allocations: 6.3 MB / 0.7357 GB, free: 276.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.172e-06/1.822, allocations: 7.469 kB / 0.7358 GB, free: 276.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03076/1.853, allocations: 10.93 MB / 0.7464 GB, free: 274 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003281/1.856, allocations: 1.055 MB / 0.7475 GB, free: 273.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/1.858, allocations: 135.4 kB / 0.7476 GB, free: 273.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004728/1.862, allocations: 420.1 kB / 0.748 GB, free: 273.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001048/1.863, allocations: 259.7 kB / 0.7482 GB, free: 273.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007346/1.864, allocations: 186.5 kB / 0.7484 GB, free: 273.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002786/1.867, allocations: 1.405 MB / 0.7498 GB, free: 273 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.489e-06/1.867, allocations: 2.062 kB / 0.7498 GB, free: 273 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01149/1.879, allocations: 2.948 MB / 0.7527 GB, free: 272.7 MB / 0.5417 GB 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 (372): * Single equations (assignments): 360 * 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.0081/1.887, allocations: 2.161 MB / 0.7548 GB, free: 272.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02944/1.916, allocations: 11.49 MB / 0.766 GB, free: 268.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/1.916, allocations: 3.75 kB / 0.766 GB, free: 268.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00888/1.925, allocations: 3.517 MB / 0.7694 GB, free: 265.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007239/1.932, allocations: 1.322 MB / 0.7707 GB, free: 264.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02286/1.955, allocations: 11.71 MB / 0.7822 GB, free: 253.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/1.958, allocations: 2.46 MB / 0.7846 GB, free: 250.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/1.96, allocations: 399.3 kB / 0.7849 GB, free: 250.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.957e-06/1.96, allocations: 0 / 0.7849 GB, free: 250.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.1679/2.128, allocations: 149.8 MB / 0.9312 GB, free: 100.5 MB / 0.5417 GB