Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.611/1.611, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003644, allocations: 8 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08636, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.21/11.3, allocations: 3.681 GB / 3.946 GB, free: 93.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/11.3, allocations: 86 kB / 3.946 GB, free: 93.66 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.328/16.63, allocations: 0.8939 GB / 4.84 GB, free: 21.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.196e-06/16.63, allocations: 5.281 kB / 4.84 GB, free: 21.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003601/16.63, allocations: 78.61 kB / 4.84 GB, free: 21.09 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.03012/16.66, allocations: 6.291 MB / 4.846 GB, free: 18.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/16.66, allocations: 9.656 kB / 4.846 GB, free: 18.06 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002884/16.66, allocations: 464.7 kB / 4.847 GB, free: 18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003682/16.66, allocations: 405.7 kB / 4.847 GB, free: 17.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/16.67, allocations: 2.417 MB / 4.85 GB, free: 17.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006148/16.68, allocations: 356.5 kB / 4.85 GB, free: 17.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/16.68, allocations: 305.4 kB / 4.85 GB, free: 17.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/16.7, allocations: 5.281 MB / 4.855 GB, free: 16.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002081/16.7, allocations: 14.5 kB / 4.855 GB, free: 16.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001672/16.7, allocations: 135.7 kB / 4.856 GB, free: 16.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004559/16.7, allocations: 258.3 kB / 4.856 GB, free: 16.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/16.72, allocations: 5.606 MB / 4.861 GB, free: 16.58 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.05256/16.77, allocations: 18.76 MB / 4.88 GB, free: 9.664 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/16.78, allocations: 3.544 MB / 4.883 GB, free: 9.602 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003484/16.78, allocations: 3.216 MB / 4.886 GB, free: 6.223 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007891/16.79, allocations: 2.558 MB / 4.889 GB, free: 6.047 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002619/16.79, allocations: 276.1 kB / 4.889 GB, free: 5.895 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 1.624e-05/16.79, allocations: 0 / 4.889 GB, free: 5.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.2284/17.02, allocations: 33.98 MB / 4.922 GB, free: 15.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002242/17.02, allocations: 354.8 kB / 4.922 GB, free: 14.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004632/17.03, allocations: 1.851 MB / 4.924 GB, free: 13.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001346/17.03, allocations: 97.7 kB / 4.924 GB, free: 13.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/17.03, allocations: 1.237 MB / 4.926 GB, free: 12.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002615/17.03, allocations: 1.314 MB / 4.927 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006279/17.03, allocations: 84 kB / 4.927 GB, free: 10.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004361/17.03, allocations: 490.9 kB / 4.927 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01058/17.04, allocations: 2.883 MB / 4.93 GB, free: 8.051 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/17.06, allocations: 3.887 MB / 4.934 GB, free: 4.348 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/17.07, allocations: 3.456 MB / 4.937 GB, free: 1.344 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.728e-05/17.07, allocations: 4 kB / 4.937 GB, free: 1.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.04786/17.12, allocations: 9.626 MB / 4.947 GB, free: 11.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3739/17.49, allocations: 10.66 MB / 4.957 GB, free: 49.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/17.49, allocations: 26.91 kB / 4.957 GB, free: 49.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01931/17.51, allocations: 2.749 MB / 4.96 GB, free: 49.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008444/17.52, allocations: 0.9339 MB / 4.961 GB, free: 49.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01694/17.54, allocations: 6.702 MB / 4.967 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008862/17.54, allocations: 0.5338 MB / 4.968 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/17.55, allocations: 244.2 kB / 4.968 GB, free: 46.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/17.55, allocations: 3.812 kB / 4.968 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03734/17.58, allocations: 8.779 MB / 4.977 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/17.58, allocations: 27.44 kB / 4.977 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01678/17.6, allocations: 2.576 MB / 4.979 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008478/17.61, allocations: 0.9565 MB / 4.98 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01555/17.63, allocations: 6.565 MB / 4.987 GB, free: 43.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007642/17.63, allocations: 0.5336 MB / 4.987 GB, free: 43.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/17.63, allocations: 237.6 kB / 4.987 GB, free: 43.08 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.004611/17.64, allocations: 1.1 MB / 4.988 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001712/17.64, allocations: 298 kB / 4.989 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04862/17.69, allocations: 8.66 MB / 4.997 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001364/17.69, allocations: 44.8 kB / 4.997 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.284e-05/17.69, allocations: 3.953 kB / 4.997 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03731/17.73, allocations: 6.75 MB / 5.004 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05725/17.78, allocations: 12.89 MB / 5.016 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.856e-05/17.78, allocations: 3.953 kB / 5.016 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006932/17.79, allocations: 0.7027 MB / 5.017 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02166/17.81, allocations: 3.124 MB / 5.02 GB, free: 41.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001379/17.81, allocations: 178.7 kB / 5.02 GB, free: 41.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/17.83, allocations: 6.319 MB / 5.026 GB, free: 38.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/17.83, allocations: 6.938 kB / 5.026 GB, free: 38.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04133/17.87, allocations: 11.26 MB / 5.037 GB, free: 37.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005419/17.88, allocations: 1.055 MB / 5.039 GB, free: 37.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002271/17.88, allocations: 128.8 kB / 5.039 GB, free: 37.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009348/17.89, allocations: 427.9 kB / 5.039 GB, free: 37.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001733/17.89, allocations: 257.9 kB / 5.039 GB, free: 37.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001029/17.89, allocations: 189.9 kB / 5.039 GB, free: 37.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004423/17.89, allocations: 1.4 MB / 5.041 GB, free: 37.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.51e-07/17.89, allocations: 0 / 5.041 GB, free: 37.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02109/17.92, allocations: 3.243 MB / 5.044 GB, free: 37.5 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.05962/17.97, allocations: 15.32 MB / 5.059 GB, free: 35.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.04043/18.02, allocations: 11.35 MB / 5.07 GB, free: 31.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/18.02, allocations: 0.9375 kB / 5.07 GB, free: 31.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01255/18.03, allocations: 3.45 MB / 5.073 GB, free: 29.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01155/18.04, allocations: 1.317 MB / 5.075 GB, free: 28.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04734/18.09, allocations: 33.5 MB / 5.107 GB, free: 12.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004089/18.09, allocations: 2.451 MB / 5.11 GB, free: 10.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005628/18.1, allocations: 1.494 MB / 5.111 GB, free: 9.516 MB / 458.7 MB Notification: Performance of SimCode: time 1.282e-06/18.1, allocations: 0 / 5.111 GB, free: 9.516 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.167/24.26, allocations: 167.6 MB / 5.275 GB, free: 2.672 MB / 458.7 MB