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.001533/0.001533, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1559/0.1559, allocations: 17.63 MB / 25.7 MB, free: 0.5234 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.454/1.454, allocations: 170.6 MB / 201.3 MB, free: 4.645 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.001585/0.001585, allocations: 105.9 kB / 245.1 MB, free: 13.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.17e-05/2.172e-05, allocations: 0 / 294.6 MB, free: 11.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2783, allocations: 43.29 MB / 337.9 MB, free: 37.71 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.324/9.602, allocations: 3.625 GB / 3.955 GB, free: 122.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/9.603, allocations: 83.95 kB / 3.955 GB, free: 122.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1149/9.718, allocations: 50.41 MB / 4.004 GB, free: 71.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.834e-06/9.718, allocations: 0 / 4.004 GB, free: 71.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.207e-05/9.718, allocations: 20 kB / 4.004 GB, free: 71.43 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.0018/9.72, allocations: 0.7206 MB / 4.005 GB, free: 70.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/9.72, allocations: 12.03 kB / 4.005 GB, free: 70.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005465/9.72, allocations: 83.22 kB / 4.005 GB, free: 70.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008664/9.721, allocations: 447.2 kB / 4.005 GB, free: 70.08 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/9.721, allocations: 16 kB / 4.005 GB, free: 70.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.722e-05/9.721, allocations: 20.34 kB / 4.005 GB, free: 70.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007179/9.722, allocations: 426.5 kB / 4.006 GB, free: 69.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/9.723, allocations: 0.6073 MB / 4.006 GB, free: 68.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/9.723, allocations: 1.969 kB / 4.006 GB, free: 68.99 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.674e-05/9.723, allocations: 4 kB / 4.006 GB, free: 68.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.433e-05/9.723, allocations: 37.23 kB / 4.006 GB, free: 68.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/9.726, allocations: 2.417 MB / 4.009 GB, free: 66.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008544/9.727, allocations: 419.2 kB / 4.009 GB, free: 65.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/9.727, allocations: 319.4 kB / 4.009 GB, free: 65.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.125e-05/9.728, allocations: 20.41 kB / 4.009 GB, free: 65.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/9.728, allocations: 46.92 kB / 4.009 GB, free: 65.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 2.805e-06/9.728, allocations: 0 / 4.009 GB, free: 65.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.001594/9.729, allocations: 0.7563 MB / 4.01 GB, free: 64.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/9.729, allocations: 162.7 kB / 4.01 GB, free: 64.51 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/9.73, allocations: 282.3 kB / 4.011 GB, free: 64.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/9.73, allocations: 29.7 kB / 4.011 GB, free: 64.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/9.73, allocations: 232.9 kB / 4.011 GB, free: 63.96 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/9.73, allocations: 173.3 kB / 4.011 GB, free: 63.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/9.73, allocations: 0 / 4.011 GB, free: 63.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/9.73, allocations: 358.8 kB / 4.011 GB, free: 63.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/9.73, allocations: 214 kB / 4.012 GB, free: 63.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/9.731, allocations: 295.7 kB / 4.012 GB, free: 62.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/9.731, allocations: 244.7 kB / 4.012 GB, free: 62.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/9.731, allocations: 0 / 4.012 GB, free: 62.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001385/9.732, allocations: 0.7733 MB / 4.013 GB, free: 61.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/9.732, allocations: 8 kB / 4.013 GB, free: 61.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/9.732, allocations: 7.984 kB / 4.013 GB, free: 61.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006201/9.733, allocations: 227.4 kB / 4.013 GB, free: 61.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/9.733, allocations: 87.88 kB / 4.013 GB, free: 61.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004969/9.738, allocations: 6.096 MB / 4.019 GB, free: 54.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/9.739, allocations: 39.73 kB / 4.019 GB, free: 54.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/9.739, allocations: 23.98 kB / 4.019 GB, free: 54.92 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hOR.'cheme-'.sT:VARIABLE(min = 0.0 unit = "L2.M/(N.T2)" nominal = 0.03800173636412126 ) "Specific entropy-temperature product upon outflow" type: Real 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 (43): * Single equations (assignments): 39 * 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: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003807/9.74, allocations: 119.1 kB / 4.019 GB, free: 54.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/9.74, allocations: 43.44 kB / 4.019 GB, free: 54.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/9.74, allocations: 60.67 kB / 4.019 GB, free: 54.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/9.74, allocations: 8 kB / 4.019 GB, free: 54.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.653e-05/9.74, allocations: 4 kB / 4.019 GB, free: 54.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/9.74, allocations: 3.984 kB / 4.019 GB, free: 54.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/9.742, allocations: 0.7691 MB / 4.02 GB, free: 53.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/9.742, allocations: 5.219 kB / 4.02 GB, free: 53.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/9.742, allocations: 79.91 kB / 4.02 GB, free: 53.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006062/9.743, allocations: 231.2 kB / 4.02 GB, free: 53.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.712e-05/9.743, allocations: 11.98 kB / 4.02 GB, free: 53.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004725/9.747, allocations: 6.076 MB / 4.026 GB, free: 47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/9.747, allocations: 8.016 kB / 4.026 GB, free: 46.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/9.749, allocations: 0.8843 MB / 4.027 GB, free: 46.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/9.749, allocations: 200.3 kB / 4.027 GB, free: 45.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-05/9.749, allocations: 0 / 4.027 GB, free: 45.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/9.75, allocations: 11.98 kB / 4.027 GB, free: 45.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/9.75, allocations: 56.3 kB / 4.027 GB, free: 45.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/9.75, allocations: 15.98 kB / 4.027 GB, free: 45.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002795/9.75, allocations: 228.6 kB / 4.028 GB, free: 45.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.61e-07/9.75, allocations: 2.344 kB / 4.028 GB, free: 45.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009664/9.751, allocations: 183.7 kB / 4.028 GB, free: 45.37 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 (39): * Single equations (assignments): 35 * 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: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001185/9.752, allocations: 0.6972 MB / 4.029 GB, free: 44.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001539/9.754, allocations: 1.041 MB / 4.03 GB, free: 43.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/9.754, allocations: 0 / 4.03 GB, free: 43.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008809/9.755, allocations: 0.7738 MB / 4.03 GB, free: 42.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/9.755, allocations: 83.84 kB / 4.03 GB, free: 42.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/9.757, allocations: 0.8413 MB / 4.031 GB, free: 41.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/9.758, allocations: 0.923 MB / 4.032 GB, free: 40.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003542/9.758, allocations: 115.2 kB / 4.032 GB, free: 40.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.557e-05/9.758, allocations: 27.44 kB / 4.032 GB, free: 40.74 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/9.758, allocations: 0 / 4.032 GB, free: 40.74 MB / 394.7 MB Notification: Performance of Templates: time 0.01838/9.777, allocations: 11.11 MB / 4.043 GB, free: 29.7 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 -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/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=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -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 -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/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=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -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:13:3: error: use of undeclared identifier '_baseUnits' _baseUnits._rad = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:14:3: error: use of undeclared identifier '_baseUnits' _baseUnits._R_inf = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:15:3: error: use of undeclared identifier '_baseUnits' _baseUnits._c = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:16:3: error: use of undeclared identifier '_baseUnits' _baseUnits._k_J = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:17:3: error: use of undeclared identifier '_baseUnits' _baseUnits._R_K = 68.51799953713946; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:18:3: error: use of undeclared identifier '_baseUnits' _baseUnits._'cd' = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:19:3: error: use of undeclared identifier '_baseUnits' _baseUnits._k_F = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:20:3: error: use of undeclared identifier '_baseUnits' _baseUnits._R = 1.0;tmp2._rad = 1.0; ^ FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.c:25:8: error: no member named '_' in 'struct FCSys_Units_Bases_Base_s' tmp2._'cd' = 1.0; ~~~~ ^ 9 errors generated. make: *** [: FCSys_FCSys.Chemistry.Examples.Stoichiometry_functions.o] Error 1