Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Conditions.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.Conditions.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Conditions_Examples_Stoichiometry",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Conditions.Examples.Stoichiometry,fileNamePrefix="FCSys_FCSys_Conditions_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.00938/0.00938, allocations: 166.5 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.134/0.134, allocations: 17.62 MB / 33.47 MB, free: 1.281 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.462/1.462, allocations: 170.8 MB / 209.5 MB, free: 12.36 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.001606/0.001606, allocations: 107.3 kB / 253.6 MB, free: 0.6328 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 13.97 kB / 307.5 MB, free: 50.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09156, allocations: 43.32 MB / 350.8 MB, free: 12.11 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.441/9.533, allocations: 3.619 GB / 3.961 GB, free: 23.08 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/9.533, allocations: 88.64 kB / 3.961 GB, free: 23.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3639/9.897, allocations: 36.92 MB / 3.997 GB, free: 119.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.919e-06/9.897, allocations: 0 / 3.997 GB, free: 119.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.886e-05/9.897, allocations: 16.16 kB / 3.997 GB, free: 119.6 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.00233/9.9, allocations: 0.6647 MB / 3.998 GB, free: 119.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.578e-05/9.9, allocations: 11.62 kB / 3.998 GB, free: 119.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002/9.9, allocations: 59.33 kB / 3.998 GB, free: 119.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005301/9.901, allocations: 68.98 kB / 3.998 GB, free: 119.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/9.902, allocations: 357.7 kB / 3.999 GB, free: 118.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/9.902, allocations: 19.03 kB / 3.999 GB, free: 118.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.323e-05/9.902, allocations: 26.67 kB / 3.999 GB, free: 118.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/9.903, allocations: 382.4 kB / 3.999 GB, free: 118.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/9.903, allocations: 0 / 3.999 GB, free: 118.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.553e-05/9.903, allocations: 10.19 kB / 3.999 GB, free: 118.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.249e-05/9.903, allocations: 20.42 kB / 3.999 GB, free: 118.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009523/9.904, allocations: 307.3 kB / 3.999 GB, free: 118.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/9.907, allocations: 1.202 MB / 4 GB, free: 118.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/9.908, allocations: 304.1 kB / 4.001 GB, free: 118.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.157e-05/9.908, allocations: 8.516 kB / 4.001 GB, free: 118.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/9.908, allocations: 32.98 kB / 4.001 GB, free: 118 MB / 394.7 MB Notification: Performance of pre-optimization done (n=28): time 2.755e-06/9.908, allocations: 3.656 kB / 4.001 GB, free: 118 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.002666/9.911, allocations: 0.7685 MB / 4.002 GB, free: 117.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/9.911, allocations: 84.23 kB / 4.002 GB, free: 117.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006468/9.912, allocations: 307.8 kB / 4.002 GB, free: 117.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/9.912, allocations: 33.33 kB / 4.002 GB, free: 117.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/9.912, allocations: 183.8 kB / 4.002 GB, free: 117.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/9.912, allocations: 99.83 kB / 4.002 GB, free: 117.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-05/9.912, allocations: 4.469 kB / 4.002 GB, free: 117.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/9.912, allocations: 345.1 kB / 4.003 GB, free: 117.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/9.913, allocations: 113.6 kB / 4.003 GB, free: 117.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/9.913, allocations: 175.4 kB / 4.003 GB, free: 117 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/9.914, allocations: 127.6 kB / 4.003 GB, free: 117 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/9.914, allocations: 0.625 kB / 4.003 GB, free: 117 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001426/9.915, allocations: 477.5 kB / 4.003 GB, free: 116.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/9.915, allocations: 11.09 kB / 4.003 GB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/9.915, allocations: 2 kB / 4.003 GB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/9.916, allocations: 144.6 kB / 4.004 GB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/9.916, allocations: 46.45 kB / 4.004 GB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003817/9.92, allocations: 3.322 MB / 4.007 GB, free: 114.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/9.92, allocations: 30.02 kB / 4.007 GB, free: 114.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/9.92, allocations: 10.41 kB / 4.007 GB, free: 114.4 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 () * Number of clocked 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.0002587/9.92, allocations: 166.9 kB / 4.007 GB, free: 114.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/9.921, allocations: 41.02 kB / 4.007 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.688e-05/9.921, allocations: 48.19 kB / 4.007 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/9.921, allocations: 3.938 kB / 4.007 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/9.921, allocations: 3.953 kB / 4.007 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/9.921, allocations: 3.188 kB / 4.007 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000815/9.921, allocations: 0.5905 MB / 4.008 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/9.921, allocations: 7.203 kB / 4.008 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/9.922, allocations: 36.95 kB / 4.008 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000406/9.922, allocations: 148.9 kB / 4.008 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/9.922, allocations: 3 kB / 4.008 GB, free: 113.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/9.925, allocations: 3.314 MB / 4.011 GB, free: 111.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/9.925, allocations: 0 / 4.011 GB, free: 111.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009877/9.926, allocations: 0.5483 MB / 4.012 GB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/9.926, allocations: 152.7 kB / 4.012 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/9.926, allocations: 3.062 kB / 4.012 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/9.926, allocations: 14.19 kB / 4.012 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/9.926, allocations: 33.08 kB / 4.012 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/9.926, allocations: 7.812 kB / 4.012 GB, free: 111.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002992/9.927, allocations: 249.3 kB / 4.012 GB, free: 111 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.92e-07/9.927, allocations: 0 / 4.012 GB, free: 111 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009201/9.928, allocations: 149 kB / 4.012 GB, free: 111 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 (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.002538/9.93, allocations: 1.647 MB / 4.014 GB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001289/9.932, allocations: 0.5709 MB / 4.014 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/9.932, allocations: 0 / 4.014 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006163/9.932, allocations: 427.1 kB / 4.015 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/9.933, allocations: 77.08 kB / 4.015 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/9.937, allocations: 3.134 MB / 4.018 GB, free: 107.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000622/9.938, allocations: 0.8381 MB / 4.019 GB, free: 107.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002214/9.938, allocations: 45.92 kB / 4.019 GB, free: 107.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/9.938, allocations: 100.5 kB / 4.019 GB, free: 107.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/9.938, allocations: 0 / 4.019 GB, free: 107.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/9.979, allocations: 18.32 MB / 4.037 GB, free: 104.8 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/9.979, allocations: 184.1 kB / 4.037 GB, free: 104.6 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_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: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_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: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_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. make: *** [: FCSys_FCSys_Conditions_Examples_Stoichiometry_functions.o] Error 1