Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Chemistry.Examples.Stoichiometry.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package FCSys with version 0.2.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(FCSys.Chemistry.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Chemistry_Examples_Stoichiometry",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Chemistry.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Chemistry_Examples_Stoichiometry",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007552/0.007552, allocations: 165.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1326/0.1326, allocations: 17.63 MB / 33.47 MB, free: 1.414 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.65/1.65, allocations: 170.8 MB / 209.5 MB, free: 12.33 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001918/0.001918, allocations: 123 kB / 253.6 MB, free: 0.6328 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004814, allocations: 12.34 kB / 307.5 MB, free: 50.11 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1185, allocations: 43.31 MB / 350.8 MB, free: 12.14 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.711/9.83, allocations: 3.625 GB / 3.968 GB, free: 16.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/9.83, allocations: 91.05 kB / 3.968 GB, free: 16.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3573/10.19, allocations: 51.27 MB / 4.018 GB, free: 117.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/10.19, allocations: 0 / 4.018 GB, free: 117.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.117e-05/10.19, allocations: 15 kB / 4.018 GB, free: 117.8 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.001487/10.19, allocations: 0.8038 MB / 4.019 GB, free: 117.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/10.19, allocations: 9.625 kB / 4.019 GB, free: 117.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/10.19, allocations: 84.22 kB / 4.019 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003513/10.19, allocations: 85.67 kB / 4.019 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/10.19, allocations: 441.7 kB / 4.02 GB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/10.19, allocations: 36.2 kB / 4.02 GB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.625e-05/10.19, allocations: 42.48 kB / 4.02 GB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/10.19, allocations: 0.7039 MB / 4.02 GB, free: 116.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/10.19, allocations: 0 / 4.02 GB, free: 116.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.2e-05/10.19, allocations: 29.31 kB / 4.02 GB, free: 116.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-05/10.19, allocations: 35.97 kB / 4.02 GB, free: 116.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/10.19, allocations: 0.6189 MB / 4.021 GB, free: 116.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/10.2, allocations: 2.419 MB / 4.023 GB, free: 114.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/10.2, allocations: 0.5016 MB / 4.024 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.822e-05/10.2, allocations: 23.28 kB / 4.024 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/10.2, allocations: 54.53 kB / 4.024 GB, free: 114.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 3.416e-06/10.2, allocations: 0 / 4.024 GB, free: 114.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.003744/10.2, allocations: 1.56 MB / 4.025 GB, free: 113.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/10.2, allocations: 162.1 kB / 4.026 GB, free: 113.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/10.2, allocations: 312.5 kB / 4.026 GB, free: 113.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/10.2, allocations: 33.7 kB / 4.026 GB, free: 113.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/10.2, allocations: 229 kB / 4.026 GB, free: 112.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/10.2, allocations: 186.9 kB / 4.026 GB, free: 112.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/10.2, allocations: 7.812 kB / 4.026 GB, free: 112.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.662e-05/10.2, allocations: 361.3 kB / 4.027 GB, free: 112.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004133/10.2, allocations: 227.4 kB / 4.027 GB, free: 112.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/10.2, allocations: 309.8 kB / 4.027 GB, free: 112.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004535/10.2, allocations: 269.7 kB / 4.027 GB, free: 112.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/10.2, allocations: 0 / 4.027 GB, free: 112.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001621/10.2, allocations: 0.861 MB / 4.028 GB, free: 111.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/10.2, allocations: 4.906 kB / 4.028 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/10.2, allocations: 7.109 kB / 4.028 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009752/10.21, allocations: 338 kB / 4.029 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/10.21, allocations: 67.34 kB / 4.029 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006002/10.21, allocations: 7.03 MB / 4.036 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004786/10.21, allocations: 50.19 kB / 4.036 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/10.21, allocations: 17.19 kB / 4.036 GB, free: 105.5 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 () * Number of clocked 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.0004063/10.21, allocations: 229.2 kB / 4.036 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.263e-05/10.21, allocations: 44.38 kB / 4.036 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/10.21, allocations: 72.53 kB / 4.036 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/10.21, allocations: 12.95 kB / 4.036 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/10.21, allocations: 0 / 4.036 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/10.21, allocations: 3.797 kB / 4.036 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/10.21, allocations: 0.8128 MB / 4.037 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/10.21, allocations: 0 / 4.037 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/10.21, allocations: 65.59 kB / 4.037 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008874/10.22, allocations: 330.8 kB / 4.037 GB, free: 104.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/10.22, allocations: 14.38 kB / 4.037 GB, free: 104.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005795/10.22, allocations: 7.027 MB / 4.044 GB, free: 98.46 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/10.22, allocations: 0 / 4.044 GB, free: 98.46 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/10.22, allocations: 0.9723 MB / 4.045 GB, free: 97.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003013/10.22, allocations: 191.7 kB / 4.045 GB, free: 97.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/10.22, allocations: 11.19 kB / 4.045 GB, free: 97.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/10.22, allocations: 31.33 kB / 4.045 GB, free: 97.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/10.22, allocations: 48.97 kB / 4.045 GB, free: 97.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/10.22, allocations: 14 kB / 4.045 GB, free: 97.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002889/10.22, allocations: 252.3 kB / 4.045 GB, free: 97.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.4e-07/10.22, allocations: 0 / 4.045 GB, free: 97.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009383/10.22, allocations: 226 kB / 4.046 GB, free: 97.6 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 () * Number of clocked 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.002782/10.23, allocations: 2.088 MB / 4.048 GB, free: 96.37 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/10.23, allocations: 1.131 MB / 4.049 GB, free: 95.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/10.23, allocations: 0 / 4.049 GB, free: 95.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009863/10.23, allocations: 0.8679 MB / 4.05 GB, free: 94.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/10.23, allocations: 85.47 kB / 4.05 GB, free: 94.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/10.24, allocations: 3.988 MB / 4.054 GB, free: 90.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/10.24, allocations: 0.9187 MB / 4.055 GB, free: 89.38 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002633/10.24, allocations: 83.28 kB / 4.055 GB, free: 89.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/10.24, allocations: 159.4 kB / 4.055 GB, free: 89.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.352e-06/10.24, allocations: 0 / 4.055 GB, free: 89.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/10.28, allocations: 23.54 MB / 4.078 GB, free: 65.64 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/10.28, allocations: 184.1 kB / 4.078 GB, free: 65.39 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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. make: *** [: FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.o] Error 1