Running command: "" <> buildModelFMU(FCSys.Chemistry.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Chemistry_Examples_Stoichiometry",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(FCSys): time 1.955/1.955, allocations: 188.8 MB / 201 MB, free: 8.637 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.073e-05/4.081e-05, allocations: 4.969 kB / 247.3 MB, free: 5.801 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 43.33 MB / 290.6 MB, free: 14.55 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.24/11.35, allocations: 3.625 GB / 3.909 GB, free: 29.22 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/11.35, allocations: 92.31 kB / 3.909 GB, free: 29.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4628/11.81, allocations: 51.13 MB / 3.959 GB, free: 118 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/11.81, allocations: 2.406 kB / 3.959 GB, free: 118 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.284e-05/11.81, allocations: 14.78 kB / 3.959 GB, free: 118 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001953/11.81, allocations: 0.7256 MB / 3.96 GB, free: 117.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/11.81, allocations: 10.78 kB / 3.96 GB, free: 117.6 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001892/11.81, allocations: 94.53 kB / 3.96 GB, free: 117.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005849/11.81, allocations: 88.59 kB / 3.96 GB, free: 117.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/11.81, allocations: 439.4 kB / 3.96 GB, free: 117.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.698e-05/11.81, allocations: 34.59 kB / 3.96 GB, free: 117.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/11.81, allocations: 36.03 kB / 3.96 GB, free: 117.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/11.82, allocations: 0.6722 MB / 3.961 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/11.82, allocations: 0 / 3.961 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.191e-05/11.82, allocations: 13.66 kB / 3.961 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.829e-05/11.82, allocations: 34.75 kB / 3.961 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/11.82, allocations: 0.5595 MB / 3.962 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/11.82, allocations: 2.423 MB / 3.964 GB, free: 115.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/11.82, allocations: 483.8 kB / 3.965 GB, free: 115.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007136/11.82, allocations: 316.1 kB / 3.965 GB, free: 115.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.968e-05/11.82, allocations: 20.98 kB / 3.965 GB, free: 115.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/11.82, allocations: 42.94 kB / 3.965 GB, free: 115.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 4.96e-06/11.82, allocations: 3.984 kB / 3.965 GB, free: 115.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.002606/11.83, allocations: 0.7937 MB / 3.966 GB, free: 115.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/11.83, allocations: 161.2 kB / 3.966 GB, free: 115.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/11.83, allocations: 315.1 kB / 3.966 GB, free: 115.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-05/11.83, allocations: 36.02 kB / 3.966 GB, free: 115.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/11.83, allocations: 223.8 kB / 3.966 GB, free: 115.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/11.83, allocations: 186.9 kB / 3.967 GB, free: 115 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/11.83, allocations: 11.09 kB / 3.967 GB, free: 115 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/11.83, allocations: 357.8 kB / 3.967 GB, free: 114.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005295/11.83, allocations: 206.6 kB / 3.967 GB, free: 114.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005753/11.83, allocations: 283.1 kB / 3.967 GB, free: 114.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005537/11.83, allocations: 240.9 kB / 3.968 GB, free: 114.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/11.83, allocations: 0 / 3.968 GB, free: 114.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002549/11.83, allocations: 0.8057 MB / 3.968 GB, free: 114.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/11.83, allocations: 10.11 kB / 3.968 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/11.83, allocations: 0 / 3.968 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/11.83, allocations: 333.1 kB / 3.969 GB, free: 114.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/11.84, allocations: 72.41 kB / 3.969 GB, free: 114.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008042/11.84, allocations: 6.875 MB / 3.976 GB, free: 108.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/11.84, allocations: 44.75 kB / 3.976 GB, free: 108.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-05/11.84, allocations: 20.53 kB / 3.976 GB, free: 108.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001902/11.84, allocations: 134.9 kB / 3.976 GB, free: 108.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/11.84, allocations: 47.22 kB / 3.976 GB, free: 108.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/11.84, allocations: 69.92 kB / 3.976 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/11.84, allocations: 3.375 kB / 3.976 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/11.84, allocations: 3 kB / 3.976 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/11.84, allocations: 0 / 3.976 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/11.85, allocations: 0.8094 MB / 3.977 GB, free: 108 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/11.85, allocations: 3.719 kB / 3.977 GB, free: 108 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004757/11.85, allocations: 61.36 kB / 3.977 GB, free: 108 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/11.85, allocations: 332.5 kB / 3.977 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/11.85, allocations: 11.81 kB / 3.977 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007736/11.86, allocations: 6.891 MB / 3.984 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/11.86, allocations: 0 / 3.984 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/11.86, allocations: 0.9201 MB / 3.985 GB, free: 101.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/11.86, allocations: 200.5 kB / 3.985 GB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/11.86, allocations: 7.906 kB / 3.985 GB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/11.86, allocations: 22.56 kB / 3.985 GB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/11.86, allocations: 58.34 kB / 3.985 GB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/11.86, allocations: 15.31 kB / 3.985 GB, free: 101.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003899/11.86, allocations: 248.1 kB / 3.985 GB, free: 101.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.3e-07/11.86, allocations: 0 / 3.985 GB, free: 101.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001236/11.86, allocations: 230.7 kB / 3.985 GB, free: 101 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003716/11.87, allocations: 2.035 MB / 3.987 GB, free: 99.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002197/11.87, allocations: 1.044 MB / 3.988 GB, free: 99.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/11.87, allocations: 0 / 3.988 GB, free: 99.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/11.87, allocations: 0.7944 MB / 3.989 GB, free: 98.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008671/11.87, allocations: 89.47 kB / 3.989 GB, free: 98.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/11.87, allocations: 0.958 MB / 3.99 GB, free: 98.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/11.87, allocations: 0.9256 MB / 3.991 GB, free: 97.31 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004762/11.87, allocations: 95.67 kB / 3.991 GB, free: 97.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/11.87, allocations: 157.8 kB / 3.991 GB, free: 97.17 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/11.87, allocations: 0 / 3.991 GB, free: 97.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08009/11.95, allocations: 25.35 MB / 4.016 GB, free: 79.97 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/11.95, allocations: 152.1 kB / 4.016 GB, free: 79.75 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o FCSys_FCSys_Chemistry_Examples_Stoichiometry.o FCSys_FCSys_Chemistry_Examples_Stoichiometry.c In file included from FCSys_FCSys_Chemistry_Examples_Stoichiometry.c:7: In file included from ./FCSys_FCSys_Chemistry_Examples_Stoichiometry_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.o FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.c In file included from FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.c:2: In file included from ./FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.c:35:48: error: use of undeclared identifier '_baseUnits' FCSys_Units_Bases_Base_construct(threadData, _baseUnits); ^ FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.c:41:8: error: no member named '_' in 'FCSys_Units_Bases_Base' tmp2._'cd' = 1.0; ~~~~ ^ 2 warnings and 2 errors generated. : recipe for target 'FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.o' failed make: *** [FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.o] Error 1