Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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) 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(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001033, allocations: 95.45 kB / 16.96 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000923/0.0009233, allocations: 191.5 kB / 17.85 MB, free: 5.242 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.844/1.844, allocations: 223.2 MB / 241.8 MB, free: 348 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004933/0.0004937, allocations: 8 kB / 301.4 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1584, allocations: 50.42 MB / 351.9 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006276/0.1648, allocations: 5.264 MB / 357.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.1684, allocations: 1.989 MB / 359.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006612/0.1691, allocations: 11.94 kB / 359.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.1707, allocations: 0.5645 MB / 359.7 MB, free: 12.17 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.001178/0.1719, allocations: 350.3 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.173, allocations: 270.8 kB / 360.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.1746, allocations: 1.11 MB / 361.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000633/0.1753, allocations: 359.3 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005607/0.1758, allocations: 386.5 kB / 362.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005716/0.1764, allocations: 470.1 kB / 362.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.645e-05/0.1765, allocations: 44 kB / 362.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.1768, allocations: 103.9 kB / 362.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004631/0.1772, allocations: 0.5804 MB / 363.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002931/0.1775, allocations: 336.6 kB / 363.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001815/0.1794, allocations: 2.135 MB / 365.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.1794, allocations: 3.938 kB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1794, allocations: 0 / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.043e-05/0.1794, allocations: 0 / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003444/0.1829, allocations: 2.058 MB / 367.8 MB, free: 3.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1829, allocations: 8.031 kB / 367.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.1833, allocations: 213.4 kB / 368.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/0.1856, allocations: 1.582 MB / 369.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002645/0.1859, allocations: 128.7 kB / 369.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.893e-05/0.186, allocations: 60 kB / 369.8 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1876, allocations: 0.8414 MB / 370.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.1876, allocations: 0 / 370.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.929e-05/0.1877, allocations: 28 kB / 370.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.1877, allocations: 16 kB / 370.7 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.1888, allocations: 0.5594 MB / 371.3 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3068/0.4955, allocations: 4.036 MB / 375.3 MB, free: 22.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.497, allocations: 0.5689 MB / 375.9 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007777/0.4978, allocations: 380.7 kB / 376.2 MB, free: 21.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.4978, allocations: 4.953 kB / 376.2 MB, free: 21.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.4978, allocations: 38.97 kB / 376.3 MB, free: 21.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.4979, allocations: 0 / 376.3 MB, free: 21.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002696/0.5006, allocations: 0.9886 MB / 377.3 MB, free: 21.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.5007, allocations: 274.6 kB / 377.5 MB, free: 21.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005296/0.506, allocations: 3.142 MB / 380.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.466e-05/0.5061, allocations: 33.11 kB / 380.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007881/0.5069, allocations: 0.8635 MB / 381.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.507, allocations: 118.5 kB / 381.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.507, allocations: 9.969 kB / 381.7 MB, free: 19.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.5071, allocations: 323.8 kB / 382 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005174/0.5076, allocations: 219.6 kB / 382.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005807/0.5082, allocations: 400.9 kB / 382.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005424/0.5088, allocations: 265.1 kB / 382.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.5088, allocations: 1.062 kB / 382.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002079/0.5109, allocations: 0.8479 MB / 383.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.5109, allocations: 7.297 kB / 383.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.5109, allocations: 7.438 kB / 383.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.5113, allocations: 70.34 kB / 383.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.5118, allocations: 124.6 kB / 383.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.5136, allocations: 1.643 MB / 385.6 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008925/0.5145, allocations: 85.73 kB / 385.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.5145, allocations: 22.41 kB / 385.7 MB, free: 16.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001403/0.5159, allocations: 0.6542 MB / 386.3 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.5163, allocations: 187.2 kB / 386.5 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004015/0.5167, allocations: 219.8 kB / 386.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5167, allocations: 3.594 kB / 386.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.5167, allocations: 0.9688 kB / 386.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5167, allocations: 2.062 kB / 386.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003854/0.5206, allocations: 2.196 MB / 388.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5206, allocations: 1.125 kB / 388.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.521, allocations: 83.61 kB / 389 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.5212, allocations: 66.53 kB / 389.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.5213, allocations: 8.625 kB / 389.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.5225, allocations: 1.596 MB / 390.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.5225, allocations: 3.938 kB / 390.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.5244, allocations: 1.013 MB / 391.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007519/0.5252, allocations: 446.9 kB / 392.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.5253, allocations: 16.39 kB / 392.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005281/0.5259, allocations: 69.34 kB / 392.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.526, allocations: 44.75 kB / 392.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.526, allocations: 7.094 kB / 392.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003751/0.5298, allocations: 2.25 MB / 394.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5298, allocations: 4 kB / 394.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001263/0.5311, allocations: 257.5 kB / 394.8 MB, free: 11.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001182/0.5323, allocations: 472 kB / 395.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.5336, allocations: 0.6249 MB / 395.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.5337, allocations: 0 / 395.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.5342, allocations: 377.5 kB / 396.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.5356, allocations: 272.5 kB / 396.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007048/0.5427, allocations: 4.125 MB / 400.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009614/0.5437, allocations: 1.485 MB / 402.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.5442, allocations: 91.44 kB / 402.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5442, allocations: 0 / 402.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of Templates: time 0.04924/0.5934, allocations: 29.18 MB / 431.4 MB, free: 7.629 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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 OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.o] Error 1