Running command: "" <> buildModelFMU(FCSys.Conditions.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Conditions_Examples_Stoichiometry",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(FCSys): time 1.848/1.848, allocations: 188.8 MB / 201 MB, free: 8.641 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.279e-05/4.249e-05, allocations: 4.172 kB / 247.3 MB, free: 5.805 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09798, allocations: 43.33 MB / 290.6 MB, free: 14.54 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.17/11.27, allocations: 3.619 GB / 3.902 GB, free: 28.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/11.27, allocations: 79.02 kB / 3.902 GB, free: 28.65 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4039/11.67, allocations: 36.77 MB / 3.938 GB, free: 119.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.495e-06/11.67, allocations: 3.906 kB / 3.938 GB, free: 119.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.792e-05/11.67, allocations: 9.219 kB / 3.938 GB, free: 119.1 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001559/11.68, allocations: 0.6031 MB / 3.939 GB, free: 118.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/11.68, allocations: 11.28 kB / 3.939 GB, free: 118.7 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/11.68, allocations: 61.81 kB / 3.939 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005639/11.68, allocations: 66.58 kB / 3.939 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009841/11.68, allocations: 359.5 kB / 3.939 GB, free: 118.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/11.68, allocations: 19.41 kB / 3.939 GB, free: 118.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/11.68, allocations: 34.5 kB / 3.94 GB, free: 118.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/11.68, allocations: 351.5 kB / 3.94 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/11.68, allocations: 0 / 3.94 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/11.68, allocations: 8.859 kB / 3.94 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.877e-05/11.68, allocations: 21.19 kB / 3.94 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007292/11.68, allocations: 250.3 kB / 3.94 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/11.68, allocations: 1.201 MB / 3.941 GB, free: 117.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/11.68, allocations: 281.2 kB / 3.942 GB, free: 117.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/11.68, allocations: 150.8 kB / 3.942 GB, free: 117.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/11.68, allocations: 9.703 kB / 3.942 GB, free: 117.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/11.68, allocations: 36.45 kB / 3.942 GB, free: 117.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=28): time 3.666e-06/11.68, allocations: 0 / 3.942 GB, free: 117.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.001416/11.68, allocations: 391.3 kB / 3.942 GB, free: 117.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/11.69, allocations: 84.08 kB / 3.942 GB, free: 117.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/11.69, allocations: 296.3 kB / 3.942 GB, free: 117.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/11.69, allocations: 30.86 kB / 3.943 GB, free: 117.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/11.69, allocations: 186.2 kB / 3.943 GB, free: 117.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/11.69, allocations: 94.8 kB / 3.943 GB, free: 117.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/11.69, allocations: 5.312 kB / 3.943 GB, free: 117.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/11.69, allocations: 349.7 kB / 3.943 GB, free: 116.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/11.69, allocations: 92.08 kB / 3.943 GB, free: 116.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/11.69, allocations: 149.3 kB / 3.943 GB, free: 116.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/11.69, allocations: 105.3 kB / 3.943 GB, free: 116.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/11.69, allocations: 1.188 kB / 3.943 GB, free: 116.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001324/11.69, allocations: 420.5 kB / 3.944 GB, free: 116.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/11.69, allocations: 7.875 kB / 3.944 GB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/11.69, allocations: 5.062 kB / 3.944 GB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007056/11.69, allocations: 147.9 kB / 3.944 GB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/11.69, allocations: 44.83 kB / 3.944 GB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/11.69, allocations: 3.25 MB / 3.947 GB, free: 114.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/11.69, allocations: 34.08 kB / 3.947 GB, free: 114.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/11.69, allocations: 10.59 kB / 3.947 GB, free: 114.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001395/11.69, allocations: 119 kB / 3.947 GB, free: 114 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/11.69, allocations: 36.41 kB / 3.947 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/11.69, allocations: 55.19 kB / 3.947 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/11.69, allocations: 5.062 kB / 3.947 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/11.69, allocations: 5.234 kB / 3.947 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/11.69, allocations: 1.188 kB / 3.947 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/11.7, allocations: 0.5893 MB / 3.948 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/11.7, allocations: 0 / 3.948 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/11.7, allocations: 38.94 kB / 3.948 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006517/11.7, allocations: 143.9 kB / 3.948 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/11.7, allocations: 11.16 kB / 3.948 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003737/11.7, allocations: 3.251 MB / 3.951 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/11.7, allocations: 1.125 kB / 3.951 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/11.7, allocations: 0.5094 MB / 3.952 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/11.7, allocations: 151.5 kB / 3.952 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/11.7, allocations: 9.328 kB / 3.952 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/11.7, allocations: 22.05 kB / 3.952 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/11.7, allocations: 25.56 kB / 3.952 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/11.7, allocations: 11.58 kB / 3.952 GB, free: 110.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004042/11.7, allocations: 241 kB / 3.952 GB, free: 110.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/11.7, allocations: 0 / 3.952 GB, free: 110.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009136/11.7, allocations: 147.5 kB / 3.952 GB, free: 110.7 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 (16): * Single equations (assignments): 14 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002336/11.71, allocations: 1.612 MB / 3.954 GB, free: 109.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/11.71, allocations: 0.4948 MB / 3.955 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/11.71, allocations: 3.312 kB / 3.955 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006314/11.71, allocations: 394.8 kB / 3.955 GB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/11.71, allocations: 79.05 kB / 3.955 GB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/11.71, allocations: 0.5889 MB / 3.956 GB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/11.71, allocations: 0.8386 MB / 3.956 GB, free: 108.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002449/11.71, allocations: 41.02 kB / 3.956 GB, free: 108.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/11.71, allocations: 101.5 kB / 3.957 GB, free: 108.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.233e-06/11.71, allocations: 0 / 3.957 GB, free: 108.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05686/11.77, allocations: 20.09 MB / 3.976 GB, free: 107.2 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002958/11.77, allocations: 157.3 kB / 3.976 GB, free: 107 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_Conditions_Examples_Stoichiometry.o FCSys_FCSys_Conditions_Examples_Stoichiometry.c In file included from FCSys_FCSys_Conditions_Examples_Stoichiometry.c:7: In file included from ./FCSys_FCSys_Conditions_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_Conditions_Examples_Stoichiometry_functions.o FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.c In file included from FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.c:2: In file included from ./FCSys_FCSys_Conditions_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_Conditions_Examples_Stoichiometry_functions.c:35:48: error: use of undeclared identifier '_baseUnits' FCSys_Units_Bases_Base_construct(threadData, _baseUnits); ^ FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.c:41:8: error: no member named '_' in 'FCSys_Units_Bases_Base' tmp2._'cd' = 1.0; ~~~~ ^ FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.c:70:48: error: use of undeclared identifier '_baseUnits' FCSys_Units_Bases_Base_construct(threadData, _baseUnits); ^ FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.c:76:8: error: no member named '_' in 'FCSys_Units_Bases_Base' tmp2._'cd' = 1.0; ~~~~ ^ 2 warnings and 4 errors generated. : recipe for target 'FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.o' failed make: *** [FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.o] Error 1