Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003508, allocations: 8 kB / 264 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2918, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.6309/0.9228, allocations: 206.3 MB / 0.5028 GB, free: 9.188 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04027/0.9631, allocations: 17.87 MB / 0.5202 GB, free: 7.273 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.9664, allocations: 75.44 kB / 0.5203 GB, free: 7.199 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004312/0.9707, allocations: 0.9334 MB / 0.5212 GB, free: 6.262 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01938/0.9901, allocations: 4.367 MB / 0.5255 GB, free: 1.883 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01826/1.008, allocations: 4.307 MB / 0.5297 GB, free: 13.57 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01157/1.02, allocations: 5.207 MB / 0.5348 GB, free: 8.352 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004515/1.025, allocations: 1.79 MB / 0.5365 GB, free: 6.535 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01513/1.04, allocations: 4.201 MB / 0.5406 GB, free: 2.324 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006161/1.046, allocations: 2.182 MB / 0.5427 GB, free: 140 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/1.047, allocations: 172 kB / 0.5429 GB, free: 15.96 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02476/1.072, allocations: 8.231 MB / 0.5509 GB, free: 7.727 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003675/1.076, allocations: 1.524 MB / 0.5524 GB, free: 6.199 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002272/1.078, allocations: 0.7031 MB / 0.5531 GB, free: 5.488 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01771/1.096, allocations: 6.72 MB / 0.5597 GB, free: 14.75 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/1.096, allocations: 0 / 0.5597 GB, free: 14.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.482e-06/1.096, allocations: 0 / 0.5597 GB, free: 14.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001815/1.096, allocations: 3.938 kB / 0.5597 GB, free: 14.75 MB / 442.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.02007/1.116, allocations: 4.624 MB / 0.5642 GB, free: 10.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/1.116, allocations: 12.03 kB / 0.5642 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001792/1.118, allocations: 451 kB / 0.5646 GB, free: 9.562 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002221/1.12, allocations: 407.6 kB / 0.565 GB, free: 9.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007332/1.128, allocations: 1.977 MB / 0.567 GB, free: 7.125 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005395/1.128, allocations: 348.2 kB / 0.5673 GB, free: 6.758 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001318/1.13, allocations: 291.8 kB / 0.5676 GB, free: 6.473 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/1.146, allocations: 5.347 MB / 0.5728 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/1.146, allocations: 7.938 kB / 0.5728 GB, free: 0.957 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007485/1.146, allocations: 124 kB / 0.5729 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008228/1.147, allocations: 405.8 kB / 0.5733 GB, free: 448 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2707/1.418, allocations: 5.66 MB / 0.5788 GB, free: 183.9 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.04751/1.466, allocations: 21.96 MB / 0.6003 GB, free: 167.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/1.476, allocations: 3.623 MB / 0.6038 GB, free: 164.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003093/1.479, allocations: 3.199 MB / 0.6069 GB, free: 160.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006829/1.486, allocations: 2.583 MB / 0.6095 GB, free: 157.8 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002018/1.488, allocations: 278.4 kB / 0.6097 GB, free: 157.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=316): time 1.197e-05/1.488, allocations: 4 kB / 0.6097 GB, free: 157.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=376): time 0.218/1.706, allocations: 33.48 MB / 0.6424 GB, free: 124 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/1.707, allocations: 325.7 kB / 0.6427 GB, free: 123.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/1.71, allocations: 2.098 MB / 0.6448 GB, free: 121.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.712, allocations: 97.7 kB / 0.6449 GB, free: 121.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/1.713, allocations: 1.317 MB / 0.6461 GB, free: 120.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002056/1.715, allocations: 1.317 MB / 0.6474 GB, free: 118.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006798/1.716, allocations: 88 kB / 0.6475 GB, free: 118.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003258/1.716, allocations: 487.3 kB / 0.648 GB, free: 118.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009798/1.726, allocations: 2.92 MB / 0.6508 GB, free: 115.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01063/1.737, allocations: 3.953 MB / 0.6547 GB, free: 110.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/1.747, allocations: 3.497 MB / 0.6581 GB, free: 107.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.365e-05/1.748, allocations: 11.94 kB / 0.6581 GB, free: 107.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.03051/1.778, allocations: 8.625 MB / 0.6665 GB, free: 98.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005854/1.779, allocations: 1.051 MB / 0.6676 GB, free: 97.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-05/1.779, allocations: 35.95 kB / 0.6676 GB, free: 97.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01812/1.797, allocations: 2.735 MB / 0.6703 GB, free: 94.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008004/1.805, allocations: 0.9478 MB / 0.6712 GB, free: 93.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/1.821, allocations: 6.697 MB / 0.6777 GB, free: 86.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008018/1.829, allocations: 0.5303 MB / 0.6783 GB, free: 86.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001383/1.83, allocations: 243.9 kB / 0.6785 GB, free: 85.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.83, allocations: 4 kB / 0.6785 GB, free: 85.82 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02955/1.86, allocations: 8.233 MB / 0.6865 GB, free: 77.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-05/1.86, allocations: 32.06 kB / 0.6866 GB, free: 77.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01689/1.877, allocations: 2.559 MB / 0.6891 GB, free: 74.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008029/1.885, allocations: 0.9556 MB / 0.69 GB, free: 73.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/1.9, allocations: 6.556 MB / 0.6964 GB, free: 67.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007953/1.908, allocations: 0.5187 MB / 0.6969 GB, free: 66.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001208/1.91, allocations: 236 kB / 0.6971 GB, free: 66.52 MB / 442.7 MB 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.003646/1.913, allocations: 1.116 MB / 0.6982 GB, free: 65.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/1.914, allocations: 300.4 kB / 0.6985 GB, free: 65.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03049/1.945, allocations: 8.719 MB / 0.707 GB, free: 56.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.818e-05/1.945, allocations: 44 kB / 0.7071 GB, free: 56.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/1.945, allocations: 0 / 0.7071 GB, free: 56.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02386/1.969, allocations: 6.816 MB / 0.7137 GB, free: 49.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04125/2.01, allocations: 13.01 MB / 0.7264 GB, free: 36.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.493e-05/2.01, allocations: 4 kB / 0.7264 GB, free: 36.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006802/2.017, allocations: 0.7062 MB / 0.7271 GB, free: 35.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02233/2.039, allocations: 3.121 MB / 0.7302 GB, free: 32.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/2.041, allocations: 175.9 kB / 0.7303 GB, free: 32.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/2.054, allocations: 6.311 MB / 0.7365 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/2.054, allocations: 4.031 kB / 0.7365 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03703/2.091, allocations: 10.92 MB / 0.7472 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003777/2.095, allocations: 1.055 MB / 0.7482 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001267/2.097, allocations: 131.9 kB / 0.7483 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006607/2.103, allocations: 419.2 kB / 0.7487 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001154/2.104, allocations: 266.8 kB / 0.749 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008/2.105, allocations: 187.9 kB / 0.7492 GB, free: 12.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002738/2.108, allocations: 1.399 MB / 0.7505 GB, free: 11.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.108, allocations: 0 / 0.7505 GB, free: 11.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01279/2.121, allocations: 2.939 MB / 0.7534 GB, free: 8.637 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: 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.3072/2.428, allocations: 13.57 MB / 0.7666 GB, free: 173.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03622/2.464, allocations: 11.48 MB / 0.7779 GB, free: 170 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/2.464, allocations: 8.406 kB / 0.7779 GB, free: 170 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01181/2.476, allocations: 3.518 MB / 0.7813 GB, free: 169 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0109/2.487, allocations: 1.324 MB / 0.7826 GB, free: 168.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03993/2.527, allocations: 15.25 MB / 0.7975 GB, free: 154.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/2.53, allocations: 2.472 MB / 0.7999 GB, free: 151.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01377/2.544, allocations: 2.555 MB / 0.8024 GB, free: 149.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004061/2.548, allocations: 1.444 MB / 0.8038 GB, free: 147.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.904e-06/2.548, allocations: 0 / 0.8038 GB, free: 147.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5441/3.092, allocations: 141.2 MB / 0.9417 GB, free: 165.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/3.092, allocations: 269.7 kB / 0.942 GB, free: 165.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.441/12.53, allocations: 1.406 kB / 0.942 GB, free: 165.5 MB / 442.7 MB