Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.888e-05/2.898e-05, allocations: 0 / 292.1 MB, free: 8.855 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.09323, allocations: 50.42 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.918/9.011, allocations: 3.574 GB / 3.909 GB, free: 72 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/9.012, allocations: 83.34 kB / 3.909 GB, free: 71.96 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.637/13.65, allocations: 0.8845 GB / 4.793 GB, free: 28.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.28e-06/13.65, allocations: 2.875 kB / 4.793 GB, free: 28.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003187/13.65, allocations: 87.36 kB / 4.794 GB, free: 28.57 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.02233/13.67, allocations: 5.798 MB / 4.799 GB, free: 25.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/13.67, allocations: 12.38 kB / 4.799 GB, free: 25.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/13.67, allocations: 417.2 kB / 4.8 GB, free: 25.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008773/13.68, allocations: 2.388 MB / 4.802 GB, free: 24.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005041/13.68, allocations: 365.6 kB / 4.802 GB, free: 24.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001689/13.69, allocations: 303.2 kB / 4.803 GB, free: 24.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01561/13.7, allocations: 5.206 MB / 4.808 GB, free: 24.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001717/13.7, allocations: 21.89 kB / 4.808 GB, free: 24.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/13.7, allocations: 130.9 kB / 4.808 GB, free: 24.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003317/13.7, allocations: 258.6 kB / 4.808 GB, free: 24.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01413/13.72, allocations: 5.45 MB / 4.813 GB, free: 23.99 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.04425/13.76, allocations: 20.61 MB / 4.834 GB, free: 12.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008831/13.77, allocations: 3.565 MB / 4.837 GB, free: 10.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004773/13.78, allocations: 2.233 MB / 4.839 GB, free: 8.062 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002637/13.78, allocations: 3.24 MB / 4.842 GB, free: 4.281 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006217/13.78, allocations: 2.603 MB / 4.845 GB, free: 2.125 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002214/13.79, allocations: 284.7 kB / 4.845 GB, free: 1.855 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 1.132e-05/13.79, allocations: 0 / 4.845 GB, free: 1.855 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.5145/14.3, allocations: 30.37 MB / 4.875 GB, free: 42.67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/14.3, allocations: 483 kB / 4.875 GB, free: 42.13 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0051/14.31, allocations: 1.907 MB / 4.877 GB, free: 41.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001245/14.31, allocations: 102.5 kB / 4.877 GB, free: 41.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001478/14.31, allocations: 1.219 MB / 4.878 GB, free: 41.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002326/14.31, allocations: 1.324 MB / 4.88 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009679/14.31, allocations: 86.66 kB / 4.88 GB, free: 40.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004297/14.31, allocations: 485.1 kB / 4.88 GB, free: 40.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006769/14.32, allocations: 2.606 MB / 4.883 GB, free: 40.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007858/14.33, allocations: 3.568 MB / 4.886 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007569/14.34, allocations: 3.153 MB / 4.889 GB, free: 39.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-05/14.34, allocations: 9.797 kB / 4.889 GB, free: 39.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02474/14.36, allocations: 8.069 MB / 4.897 GB, free: 38.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002069/14.36, allocations: 9.855 MB / 4.907 GB, free: 28.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/14.36, allocations: 26.83 kB / 4.907 GB, free: 28.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009285/14.37, allocations: 2.168 MB / 4.909 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006367/14.38, allocations: 0.9279 MB / 4.91 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007625/14.39, allocations: 5.96 MB / 4.916 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007069/14.39, allocations: 0.5449 MB / 4.916 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/14.39, allocations: 225 kB / 4.917 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/14.39, allocations: 3.875 kB / 4.917 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02664/14.42, allocations: 8.423 MB / 4.925 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.089e-05/14.42, allocations: 25.66 kB / 4.925 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008093/14.43, allocations: 1.978 MB / 4.927 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006633/14.44, allocations: 0.9415 MB / 4.928 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/14.44, allocations: 5.796 MB / 4.933 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00612/14.45, allocations: 0.521 MB / 4.934 GB, free: 22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001764/14.45, allocations: 226.7 kB / 4.934 GB, free: 22 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (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,PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * Array equations: 0 * Algorithm blocks: 3 * 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.002704/14.45, allocations: 362.2 kB / 4.934 GB, free: 21.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/14.46, allocations: 311.4 kB / 4.935 GB, free: 21.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02248/14.48, allocations: 8.037 MB / 4.943 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.451e-05/14.48, allocations: 44.3 kB / 4.943 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/14.48, allocations: 7.391 kB / 4.943 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01571/14.49, allocations: 6.015 MB / 4.948 GB, free: 21.03 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03935/14.53, allocations: 13.29 MB / 4.961 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.278e-05/14.53, allocations: 4.094 kB / 4.961 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005145/14.54, allocations: 0.7061 MB / 4.962 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01158/14.55, allocations: 2.576 MB / 4.965 GB, free: 20.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001284/14.55, allocations: 177.5 kB / 4.965 GB, free: 20.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006719/14.56, allocations: 5.649 MB / 4.97 GB, free: 17.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.24e-06/14.56, allocations: 3.281 kB / 4.97 GB, free: 17.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02765/14.59, allocations: 10.58 MB / 4.981 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004071/14.59, allocations: 1.08 MB / 4.982 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00191/14.59, allocations: 133.4 kB / 4.982 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005778/14.6, allocations: 427 kB / 4.982 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/14.6, allocations: 263.4 kB / 4.982 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001081/14.6, allocations: 174.3 kB / 4.983 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003284/14.6, allocations: 1.436 MB / 4.984 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.96e-06/14.6, allocations: 0 / 4.984 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0153/14.62, allocations: 3.184 MB / 4.987 GB, free: 13.04 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (374): * Single equations (assignments): 362 * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01143/14.63, allocations: 3.153 MB / 4.99 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0256/14.66, allocations: 10.29 MB / 5 GB, free: 9.141 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/14.66, allocations: 1.109 kB / 5 GB, free: 9.141 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008363/14.66, allocations: 3.186 MB / 5.003 GB, free: 8.191 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0098/14.67, allocations: 1.411 MB / 5.005 GB, free: 7.898 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/14.7, allocations: 8.914 MB / 5.013 GB, free: 4.367 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003423/14.7, allocations: 2.458 MB / 5.016 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/14.71, allocations: 386.5 kB / 5.016 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of SimCode: time 2.153e-06/14.71, allocations: 0 / 5.016 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of Templates: time 0.6487/15.35, allocations: 153.9 MB / 5.167 GB, free: 60.24 MB / 0.5261 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.cpp:25: In file included from ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsAlgLoopMain.cpp:12: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsAlgloop1214.cpp:80:65: error: use of undeclared identifier '_Closure100_Modelica_Fluid_Pipes__omcQuot_44796E616D6963506970652464756374496E_Medium_T__phX_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure100_Modelica_Fluid_Pipes__omcQuot_44796E616D6963506970652464756374496E_Medium_T__phX_f__nonlinear(_functions, /*box double*/_system->_ductIn_P_statesFM1_P_p_, /*box double*/_system->_freshAir_P_ports2_P_h_outflow_, /*box BaseArray*/_system->_freshAir_P_X_), 190.0, 647.0, 1e-13, tmp1130); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.cpp:25: In file included from ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsAlgLoopMain.cpp:39: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsAlgloop421.cpp:82:65: error: use of undeclared identifier '_Closure101_Modelica_Fluid_Pipes__omcQuot_44796E616D6963506970652464756374496E_Medium_T__phX_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure101_Modelica_Fluid_Pipes__omcQuot_44796E616D6963506970652464756374496E_Medium_T__phX_f__nonlinear(_functions, /*box double*/_system->_ductIn_P_statesFM1_P_p_, /*box double*/_system->_freshAir_P_ports2_P_h_outflow_, /*box BaseArray*/_system->_freshAir_P_X_), 190.0, 647.0, 1e-13, tmp1209); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsFunctions.cpp:325:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp214.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControlsCalcHelperMain.o] Error 1