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: translateModel(FCSys.Chemistry.Examples.Stoichiometry,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="FCSys_FCSys.Chemistry.Examples.Stoichiometry") translateModel(FCSys.Chemistry.Examples.Stoichiometry,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="FCSys_FCSys.Chemistry.Examples.Stoichiometry") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001894/0.001894, allocations: 169.9 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.1794/0.1794, 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.753/1.753, allocations: 170.6 MB / 206.5 MB, free: 5.605 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.001674/0.001674, allocations: 114.9 kB / 250.4 MB, free: 8.289 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.139e-05/5.142e-05, allocations: 7.938 kB / 301.6 MB, free: 8.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1408, allocations: 43.31 MB / 344.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.46/11.6, allocations: 3.625 GB / 3.962 GB, free: 122.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/11.6, allocations: 85.78 kB / 3.962 GB, free: 122.1 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1112/11.71, allocations: 51.19 MB / 4.012 GB, free: 74.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.534e-06/11.71, allocations: 0 / 4.012 GB, free: 74.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.257e-05/11.71, allocations: 19.92 kB / 4.012 GB, free: 74.05 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.001883/11.71, allocations: 0.7197 MB / 4.013 GB, free: 73.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/11.71, allocations: 15.97 kB / 4.013 GB, free: 73.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/11.71, allocations: 83.22 kB / 4.013 GB, free: 73.19 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/11.71, allocations: 447.2 kB / 4.013 GB, free: 72.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/11.71, allocations: 36.98 kB / 4.013 GB, free: 72.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/11.71, allocations: 36.34 kB / 4.013 GB, free: 72.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/11.72, allocations: 0.6722 MB / 4.014 GB, free: 71.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/11.72, allocations: 0 / 4.014 GB, free: 71.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.425e-05/11.72, allocations: 20 kB / 4.014 GB, free: 71.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.358e-05/11.72, allocations: 40.97 kB / 4.014 GB, free: 71.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/11.72, allocations: 0.5623 MB / 4.015 GB, free: 71.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/11.72, allocations: 2.413 MB / 4.017 GB, free: 68.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009283/11.72, allocations: 483 kB / 4.018 GB, free: 68.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004137/11.72, allocations: 325.7 kB / 4.018 GB, free: 67.84 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/11.72, allocations: 24.39 kB / 4.018 GB, free: 67.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/11.72, allocations: 43 kB / 4.018 GB, free: 67.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 2.665e-06/11.72, allocations: 0 / 4.018 GB, free: 67.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.001602/11.72, allocations: 0.7952 MB / 4.019 GB, free: 66.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/11.72, allocations: 162.6 kB / 4.019 GB, free: 66.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/11.72, allocations: 299.6 kB / 4.019 GB, free: 66.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/11.72, allocations: 37.7 kB / 4.019 GB, free: 66.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/11.72, allocations: 240.9 kB / 4.019 GB, free: 66.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/11.72, allocations: 177.4 kB / 4.02 GB, free: 66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/11.72, allocations: 12 kB / 4.02 GB, free: 65.99 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/11.72, allocations: 350.8 kB / 4.02 GB, free: 65.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/11.72, allocations: 209.1 kB / 4.02 GB, free: 65.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/11.72, allocations: 284.8 kB / 4.02 GB, free: 65.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/11.73, allocations: 245.5 kB / 4.021 GB, free: 64.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/11.73, allocations: 0 / 4.021 GB, free: 64.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001422/11.73, allocations: 0.8031 MB / 4.021 GB, free: 64.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/11.73, allocations: 19.83 kB / 4.021 GB, free: 64.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/11.73, allocations: 128 / 4.021 GB, free: 64.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/11.73, allocations: 323.2 kB / 4.022 GB, free: 63.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/11.73, allocations: 75.89 kB / 4.022 GB, free: 63.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005903/11.73, allocations: 6.874 MB / 4.029 GB, free: 56.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004106/11.73, allocations: 55.53 kB / 4.029 GB, free: 56.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.906e-05/11.73, allocations: 16 kB / 4.029 GB, free: 56.16 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.0001834/11.73, allocations: 139 kB / 4.029 GB, free: 56.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/11.73, allocations: 50.25 kB / 4.029 GB, free: 55.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002277/11.74, allocations: 64.67 kB / 4.029 GB, free: 55.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/11.74, allocations: 4 kB / 4.029 GB, free: 55.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/11.74, allocations: 8 kB / 4.029 GB, free: 55.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/11.74, allocations: 3.938 kB / 4.029 GB, free: 55.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/11.74, allocations: 0.8155 MB / 4.03 GB, free: 55.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/11.74, allocations: 4.031 kB / 4.03 GB, free: 55.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/11.74, allocations: 51.91 kB / 4.03 GB, free: 54.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008022/11.74, allocations: 323.2 kB / 4.03 GB, free: 54.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.565e-05/11.74, allocations: 15.98 kB / 4.03 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005096/11.74, allocations: 6.892 MB / 4.037 GB, free: 47.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/11.74, allocations: 32 / 4.037 GB, free: 47.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/11.74, allocations: 0.9234 MB / 4.038 GB, free: 46.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/11.74, allocations: 192.3 kB / 4.038 GB, free: 46.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/11.74, allocations: 16 kB / 4.038 GB, free: 46.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/11.74, allocations: 19.98 kB / 4.038 GB, free: 46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/11.74, allocations: 60.23 kB / 4.038 GB, free: 45.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/11.74, allocations: 19.98 kB / 4.038 GB, free: 45.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003671/11.75, allocations: 250.2 kB / 4.038 GB, free: 45.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/11.75, allocations: 0 / 4.038 GB, free: 45.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00107/11.75, allocations: 223.6 kB / 4.038 GB, free: 45.45 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.001154/11.75, allocations: 0.5994 MB / 4.039 GB, free: 44.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001579/11.75, allocations: 1.077 MB / 4.04 GB, free: 43.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/11.75, allocations: 5.219 kB / 4.04 GB, free: 43.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009193/11.75, allocations: 0.8208 MB / 4.041 GB, free: 42.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000588/11.75, allocations: 87.12 kB / 4.041 GB, free: 42.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/11.75, allocations: 0.8308 MB / 4.042 GB, free: 41.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/11.75, allocations: 0.9225 MB / 4.043 GB, free: 40.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003095/11.75, allocations: 79.3 kB / 4.043 GB, free: 40.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/11.75, allocations: 31.42 kB / 4.043 GB, free: 40.84 MB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/11.75, allocations: 0 / 4.043 GB, free: 40.84 MB / 394.7 MB Notification: Performance of Templates: time 0.03085/11.78, allocations: 19.11 MB / 4.061 GB, free: 21.8 MB / 394.7 MB make -j1 -f FCSys_FCSys.Chemistry.Examples.Stoichiometry.makefile make -j1 -f FCSys_FCSys.Chemistry.Examples.Stoichiometry.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=FCSys_FCSys_Chemistry_Examples_Stoichiometry -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=8 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys.Chemistry.Examples.Stoichiometry.o FCSys_FCSys.Chemistry.Examples.Stoichiometry.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=FCSys_FCSys_Chemistry_Examples_Stoichiometry -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=8 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.o FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c 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 errors generated. make: *** [: FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.o] Error 1