Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.546e-05, allocations: 6.031 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1188, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.76/10.88, allocations: 3.553 GB / 3.887 GB, free: 49.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/10.88, allocations: 91.81 kB / 3.887 GB, free: 49.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.022/13.9, allocations: 0.5349 GB / 4.422 GB, free: 18.47 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.833e-06/13.9, allocations: 3.938 kB / 4.422 GB, free: 18.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.378e-05/13.9, allocations: 27.98 kB / 4.422 GB, free: 18.44 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01189/13.91, allocations: 2.87 MB / 4.425 GB, free: 15.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/13.91, allocations: 12.88 kB / 4.425 GB, free: 15.49 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004702/13.91, allocations: 139.6 kB / 4.425 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007266/13.91, allocations: 130.7 kB / 4.425 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/13.91, allocations: 0.7247 MB / 4.426 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/13.91, allocations: 137.3 kB / 4.426 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002348/13.91, allocations: 87.98 kB / 4.426 GB, free: 14.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003287/13.92, allocations: 1.409 MB / 4.428 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/13.92, allocations: 3.938 kB / 4.428 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/13.92, allocations: 43.98 kB / 4.428 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/13.92, allocations: 61.97 kB / 4.428 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003403/13.92, allocations: 1.394 MB / 4.429 GB, free: 11.23 MB / 458.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.01271/13.93, allocations: 6.043 MB / 4.435 GB, free: 4.832 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002687/13.94, allocations: 0.9427 MB / 4.436 GB, free: 3.879 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/13.94, allocations: 0.5078 MB / 4.436 GB, free: 3.371 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001624/13.94, allocations: 1.808 MB / 4.438 GB, free: 1.176 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/13.94, allocations: 47.34 kB / 4.438 GB, free: 1.121 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009315/13.94, allocations: 110.9 kB / 4.438 GB, free: 1.012 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 3.867e-06/13.94, allocations: 0 / 4.438 GB, free: 1.012 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.02767/13.97, allocations: 4.401 MB / 4.443 GB, free: 12.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/13.97, allocations: 123.5 kB / 4.443 GB, free: 12.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/13.97, allocations: 0.6755 MB / 4.443 GB, free: 11.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002604/13.97, allocations: 45.7 kB / 4.444 GB, free: 11.68 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004664/13.97, allocations: 469.7 kB / 4.444 GB, free: 11.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004805/13.97, allocations: 347.1 kB / 4.444 GB, free: 10.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/13.97, allocations: 24 kB / 4.444 GB, free: 10.85 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/13.97, allocations: 358.8 kB / 4.445 GB, free: 10.49 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/13.97, allocations: 0.5492 MB / 4.445 GB, free: 9.938 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/13.97, allocations: 0.8879 MB / 4.446 GB, free: 8.902 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/13.98, allocations: 0.7421 MB / 4.447 GB, free: 8.148 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/13.98, allocations: 4 kB / 4.447 GB, free: 8.145 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.005484/13.98, allocations: 1.693 MB / 4.448 GB, free: 6.426 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002044/13.98, allocations: 3.973 MB / 4.452 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.786e-05/13.98, allocations: 12 kB / 4.452 GB, free: 2.125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001865/13.99, allocations: 244.6 kB / 4.453 GB, free: 1.887 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/13.99, allocations: 271.5 kB / 4.453 GB, free: 1.621 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/13.99, allocations: 0.8139 MB / 4.454 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/13.99, allocations: 115.8 kB / 4.454 GB, free: 0.668 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002743/13.99, allocations: 71.97 kB / 4.454 GB, free: 0.5977 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/13.99, allocations: 4 kB / 4.454 GB, free: 0.5938 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4006/14.39, allocations: 1.62 MB / 4.455 GB, free: 50.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.763e-05/14.39, allocations: 10.06 kB / 4.455 GB, free: 50.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/14.4, allocations: 240.8 kB / 4.456 GB, free: 50.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/14.4, allocations: 269.4 kB / 4.456 GB, free: 50.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/14.4, allocations: 0.8221 MB / 4.457 GB, free: 49.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/14.4, allocations: 100.6 kB / 4.457 GB, free: 49.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/14.4, allocations: 72.23 kB / 4.457 GB, free: 49.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006212/14.4, allocations: 184.9 kB / 4.457 GB, free: 49.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004766/14.4, allocations: 99.59 kB / 4.457 GB, free: 49.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007215/14.41, allocations: 1.83 MB / 4.459 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/14.41, allocations: 16.28 kB / 4.459 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/14.41, allocations: 2.703 kB / 4.459 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/14.41, allocations: 5.578 kB / 4.459 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00762/14.42, allocations: 2.973 MB / 4.462 GB, free: 49.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/14.42, allocations: 1.281 kB / 4.462 GB, free: 49.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/14.42, allocations: 181.3 kB / 4.462 GB, free: 49.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/14.42, allocations: 309.9 kB / 4.462 GB, free: 49.22 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/14.42, allocations: 39.64 kB / 4.462 GB, free: 49.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/14.42, allocations: 0.7861 MB / 4.463 GB, free: 48.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/14.42, allocations: 11.11 kB / 4.463 GB, free: 48.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005332/14.43, allocations: 2.276 MB / 4.465 GB, free: 48.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/14.43, allocations: 345.2 kB / 4.466 GB, free: 48.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/14.43, allocations: 24.86 kB / 4.466 GB, free: 48.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/14.43, allocations: 79.55 kB / 4.466 GB, free: 48.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/14.43, allocations: 75.17 kB / 4.466 GB, free: 48.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/14.43, allocations: 55.34 kB / 4.466 GB, free: 48.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00117/14.43, allocations: 0.535 MB / 4.466 GB, free: 48.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/14.44, allocations: 0 / 4.466 GB, free: 48.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006178/14.44, allocations: 1.301 MB / 4.468 GB, free: 48.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01186/14.45, allocations: 5.13 MB / 4.473 GB, free: 46.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006367/14.46, allocations: 2.421 MB / 4.475 GB, free: 46.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/14.46, allocations: 1.469 kB / 4.475 GB, free: 46.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/14.46, allocations: 0.6762 MB / 4.476 GB, free: 46.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/14.47, allocations: 0.4893 MB / 4.476 GB, free: 46.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/14.48, allocations: 2.699 MB / 4.479 GB, free: 45.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/14.48, allocations: 1.137 MB / 4.48 GB, free: 45.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/14.48, allocations: 420.1 kB / 4.48 GB, free: 45.22 MB / 474.7 MB Notification: Performance of SimCode: time 1.283e-06/14.48, allocations: 3.938 kB / 4.48 GB, free: 45.22 MB / 474.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.cpp:17: ./OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.h:708:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Pipes__omcQuot_537461746963506970652470697065_Medium_T__phX_f__nonlinear(u, p, h, X, output); ^ ./OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.h:11:7: note: forward declaration of 'Functions' class Functions; ^ ./OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.h:726:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Pipes__omcQuot_537461746963506970652470697065_Medium_T__phX_f__nonlinear(u, p, h, X, output); ^ ./OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2FMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2CalcHelperMain.o] Error 1