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.001286/0.001287, allocations: 169.7 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1586/0.1586, allocations: 17.61 MB / 30.87 MB, free: 3.148 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.871/1.871, allocations: 170.6 MB / 206.5 MB, free: 5.672 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.001791/0.001791, allocations: 114.4 kB / 250.4 MB, free: 8.289 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.061e-05/5.063e-05, allocations: 0 / 301.7 MB, free: 8.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1338, allocations: 43.32 MB / 345 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.2/11.33, allocations: 3.625 GB / 3.962 GB, free: 122.2 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/11.33, allocations: 83.88 kB / 3.962 GB, free: 122.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1088/11.44, allocations: 51.19 MB / 4.012 GB, free: 73.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.465e-06/11.44, allocations: 4 kB / 4.012 GB, free: 73.83 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.368e-05/11.44, allocations: 23.92 kB / 4.012 GB, free: 73.81 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.001338/11.44, allocations: 0.7237 MB / 4.013 GB, free: 73.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/11.44, allocations: 11.97 kB / 4.013 GB, free: 73.03 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/11.44, allocations: 90.5 kB / 4.013 GB, free: 72.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000399/11.44, allocations: 83.22 kB / 4.013 GB, free: 72.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/11.44, allocations: 451.2 kB / 4.014 GB, free: 72.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/11.44, allocations: 29 kB / 4.014 GB, free: 72.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.227e-05/11.44, allocations: 40.34 kB / 4.014 GB, free: 72.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000958/11.44, allocations: 0.6722 MB / 4.014 GB, free: 71.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/11.44, allocations: 0 / 4.014 GB, free: 71.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/11.44, allocations: 20 kB / 4.014 GB, free: 71.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/11.44, allocations: 28.98 kB / 4.014 GB, free: 71.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007993/11.44, allocations: 0.5685 MB / 4.015 GB, free: 70.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/11.45, allocations: 2.417 MB / 4.017 GB, free: 68.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008955/11.45, allocations: 487 kB / 4.018 GB, free: 67.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/11.45, allocations: 319.4 kB / 4.018 GB, free: 67.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.656e-05/11.45, allocations: 20.41 kB / 4.018 GB, free: 67.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/11.45, allocations: 43 kB / 4.018 GB, free: 67.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 2.184e-06/11.45, allocations: 0 / 4.018 GB, free: 67.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.001538/11.45, allocations: 0.7913 MB / 4.019 GB, free: 66.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.465e-05/11.45, allocations: 166.7 kB / 4.019 GB, free: 66.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/11.45, allocations: 299.6 kB / 4.019 GB, free: 66.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/11.45, allocations: 33.7 kB / 4.019 GB, free: 66.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/11.45, allocations: 240.9 kB / 4.02 GB, free: 65.85 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/11.45, allocations: 177.4 kB / 4.02 GB, free: 65.67 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/11.45, allocations: 4 kB / 4.02 GB, free: 65.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/11.45, allocations: 366.8 kB / 4.02 GB, free: 65.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/11.45, allocations: 205.1 kB / 4.02 GB, free: 65.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/11.45, allocations: 280.8 kB / 4.021 GB, free: 64.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/11.45, allocations: 241.5 kB / 4.021 GB, free: 64.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/11.45, allocations: 0 / 4.021 GB, free: 64.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001369/11.45, allocations: 0.8263 MB / 4.022 GB, free: 63.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/11.45, allocations: 4.938 kB / 4.022 GB, free: 63.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/11.45, allocations: 4 kB / 4.022 GB, free: 63.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008931/11.45, allocations: 331.4 kB / 4.022 GB, free: 63.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/11.45, allocations: 63.89 kB / 4.022 GB, free: 63.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/11.46, allocations: 6.882 MB / 4.029 GB, free: 55.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/11.46, allocations: 54.33 kB / 4.029 GB, free: 55.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/11.46, allocations: 19.98 kB / 4.029 GB, free: 55.82 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.000182/11.46, allocations: 131 kB / 4.029 GB, free: 55.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/11.46, allocations: 47.44 kB / 4.029 GB, free: 55.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/11.46, allocations: 64.75 kB / 4.029 GB, free: 55.58 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/11.46, allocations: 11.94 kB / 4.029 GB, free: 55.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/11.46, allocations: 0 / 4.029 GB, free: 55.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/11.46, allocations: 3.984 kB / 4.029 GB, free: 55.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009931/11.46, allocations: 0.8077 MB / 4.03 GB, free: 54.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/11.46, allocations: 0 / 4.03 GB, free: 54.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/11.46, allocations: 63.92 kB / 4.03 GB, free: 54.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007909/11.46, allocations: 323.6 kB / 4.03 GB, free: 54.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/11.46, allocations: 12 kB / 4.03 GB, free: 54.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004957/11.47, allocations: 6.895 MB / 4.037 GB, free: 46.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/11.47, allocations: 0 / 4.037 GB, free: 46.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/11.47, allocations: 0.9233 MB / 4.038 GB, free: 45.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/11.47, allocations: 192.3 kB / 4.038 GB, free: 45.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/11.47, allocations: 12 kB / 4.038 GB, free: 45.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/11.47, allocations: 31.97 kB / 4.038 GB, free: 45.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/11.47, allocations: 60.25 kB / 4.038 GB, free: 45.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/11.47, allocations: 12 kB / 4.038 GB, free: 45.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003056/11.47, allocations: 246.1 kB / 4.038 GB, free: 45.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/11.47, allocations: 0 / 4.038 GB, free: 45.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001038/11.47, allocations: 231.6 kB / 4.039 GB, free: 45.12 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.002468/11.47, allocations: 2.035 MB / 4.041 GB, free: 43.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/11.47, allocations: 1.077 MB / 4.042 GB, free: 41.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/11.47, allocations: 0 / 4.042 GB, free: 41.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008359/11.48, allocations: 0.8325 MB / 4.042 GB, free: 41.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/11.48, allocations: 76.42 kB / 4.043 GB, free: 40.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/11.48, allocations: 0.9728 MB / 4.043 GB, free: 39.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/11.48, allocations: 0.9264 MB / 4.044 GB, free: 38.98 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002582/11.48, allocations: 83.28 kB / 4.044 GB, free: 38.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/11.48, allocations: 159.4 kB / 4.045 GB, free: 38.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/11.48, allocations: 0 / 4.045 GB, free: 38.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04582/11.52, allocations: 25.38 MB / 4.069 GB, free: 13.45 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/11.52, allocations: 161 kB / 4.07 GB, free: 13.22 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/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 -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/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. make: *** [: FCSys_FCSys_Chemistry_Examples_Stoichiometry_functions.o] Error 1