Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 98.89 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 178.6 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 223.3 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.3265/0.3265, allocations: 15.27 MB / 307 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004686, allocations: 12 kB / 372.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4112, allocations: 54.62 MB / 426.7 MB, free: 40.08 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.Phosphate): time 0.008944/0.4203, allocations: 8.847 MB / 435.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02771/0.448, allocations: 26.12 MB / 461.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002646/0.4507, allocations: 40.53 kB / 461.7 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.4524, allocations: 0.5143 MB / 462.2 MB, free: 17.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008066/0.4605, allocations: 2.233 MB / 464.5 MB, free: 16.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01097/0.4715, allocations: 2.854 MB / 467.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005129/0.4767, allocations: 2.507 MB / 469.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003079/0.4798, allocations: 1.322 MB / 471.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003799/0.4836, allocations: 1.147 MB / 472.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004679/0.4883, allocations: 1.449 MB / 473.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001359/0.4897, allocations: 138.3 kB / 473.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01459/0.5043, allocations: 2.877 MB / 476.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.5058, allocations: 0.4891 MB / 477.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.507, allocations: 391.9 kB / 477.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009982/0.517, allocations: 4.404 MB / 482 MB, free: 9.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.517, allocations: 1.75 kB / 482 MB, free: 9.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.517, allocations: 0 / 482 MB, free: 9.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.5172, allocations: 0 / 482 MB, free: 9.309 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.01171/0.5289, allocations: 2.481 MB / 484.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/0.529, allocations: 9.344 kB / 484.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004438/0.5334, allocations: 460.6 kB / 485 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00425/0.5377, allocations: 0.9846 MB / 486 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000369/0.5381, allocations: 251 kB / 486.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.5392, allocations: 198.9 kB / 486.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006964/0.5461, allocations: 2.492 MB / 488.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.834e-05/0.5462, allocations: 1.375 kB / 488.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/0.5464, allocations: 74.86 kB / 489 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.067e-05/0.5465, allocations: 44.38 kB / 489 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007881/0.5544, allocations: 3.187 MB / 492.2 MB, free: 4.406 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.5754, allocations: 8.28 MB / 0.4887 GB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00998/0.5854, allocations: 5.403 MB / 0.494 GB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/0.5884, allocations: 1.27 MB / 0.4953 GB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01639/0.6048, allocations: 10.06 MB / 0.5051 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/0.6049, allocations: 55.75 kB / 0.5051 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001366/0.6063, allocations: 226.4 kB / 0.5054 GB, free: 9.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 3.386e-06/0.6063, allocations: 0 / 0.5054 GB, free: 9.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02911/0.6354, allocations: 7.574 MB / 0.5127 GB, free: 1.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.6355, allocations: 81.36 kB / 0.5128 GB, free: 1.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.637, allocations: 0.8895 MB / 0.5137 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004544/0.6374, allocations: 53.7 kB / 0.5137 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.6381, allocations: 0.8027 MB / 0.5145 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008121/0.6389, allocations: 0.6353 MB / 0.5152 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.639, allocations: 40 kB / 0.5152 GB, free: 15.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.6392, allocations: 386.3 kB / 0.5156 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.6407, allocations: 0.7812 MB / 0.5163 GB, free: 14.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.6425, allocations: 1.364 MB / 0.5177 GB, free: 12.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.6442, allocations: 0.9664 MB / 0.5186 GB, free: 11.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.6442, allocations: 4 kB / 0.5186 GB, free: 11.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01131/0.6555, allocations: 3.375 MB / 0.5219 GB, free: 8.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.6556, allocations: 12 kB / 0.5219 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/0.6556, allocations: 20.12 kB / 0.5219 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003665/0.6593, allocations: 0.8374 MB / 0.5227 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/0.6617, allocations: 0.5226 MB / 0.5233 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005928/0.6676, allocations: 3.543 MB / 0.5267 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/0.6701, allocations: 108 kB / 0.5268 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000684/0.6708, allocations: 123.9 kB / 0.5269 GB, free: 2.777 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001707/0.6725, allocations: 401.1 kB / 0.5273 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007215/0.6732, allocations: 146.1 kB / 0.5275 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/0.6865, allocations: 3.34 MB / 0.5307 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.224e-05/0.6866, allocations: 16 kB / 0.5307 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.822e-05/0.6866, allocations: 4 kB / 0.5307 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.645e-05/0.6867, allocations: 7.969 kB / 0.5307 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/0.705, allocations: 5.219 MB / 0.5358 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/0.7051, allocations: 0 / 0.5358 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001999/0.7071, allocations: 363.5 kB / 0.5362 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00371/0.7108, allocations: 0.814 MB / 0.537 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006622/0.7115, allocations: 71.95 kB / 0.5371 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005564/0.7171, allocations: 3.433 MB / 0.5404 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.7171, allocations: 64 / 0.5404 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/0.7317, allocations: 4.227 MB / 0.5445 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.7324, allocations: 203.2 kB / 0.5447 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006732/0.7331, allocations: 39.98 kB / 0.5448 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.7346, allocations: 83.7 kB / 0.5448 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006152/0.7353, allocations: 193.7 kB / 0.545 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002851/0.7356, allocations: 79.95 kB / 0.5451 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009736/0.7365, allocations: 0.5664 MB / 0.5457 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7366, allocations: 0 / 0.5457 GB, free: 15.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004649/0.7412, allocations: 1.144 MB / 0.5468 GB, free: 14.03 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * 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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004479/0.7457, allocations: 1.283 MB / 0.548 GB, free: 12.74 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006229/0.752, allocations: 2.551 MB / 0.5505 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.752, allocations: 0 / 0.5505 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003273/0.7553, allocations: 1.494 MB / 0.552 GB, free: 8.605 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.7578, allocations: 304.4 kB / 0.5523 GB, free: 8.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00874/0.7665, allocations: 4.144 MB / 0.5563 GB, free: 4.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.7678, allocations: 1.314 MB / 0.5576 GB, free: 2.785 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/0.7691, allocations: 351 kB / 0.5579 GB, free: 2.441 MB / 430.1 MB Notification: Performance of SimCode: time 1.433e-06/0.7692, allocations: 0 / 0.5579 GB, free: 2.441 MB / 430.1 MB Notification: Performance of Templates: time 0.3146/1.084, allocations: 55.01 MB / 0.6117 GB, free: 135.6 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppChemical_Chemical.Examples.AcidBase.PhosphateCalcHelperMain.o OMCppChemical_Chemical.Examples.AcidBase.PhosphateCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.AcidBase.PhosphateCalcHelperMain.o] Error 1