Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008887/0.0008889, allocations: 92.53 kB / 16.95 MB, free: 5.953 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.001087/0.001087, allocations: 177.7 kB / 17.84 MB, free: 5.621 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.683/1.683, allocations: 223.2 MB / 241.8 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.000311, allocations: 12 kB / 301.4 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1439, allocations: 50.42 MB / 351.9 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006396/0.1503, allocations: 4.785 MB / 356.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.1537, allocations: 1.599 MB / 358.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004753/0.1542, allocations: 15.94 kB / 358.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.1552, allocations: 482.4 kB / 358.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000648/0.1559, allocations: 306.5 kB / 359 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007763/0.1567, allocations: 250.9 kB / 359.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008923/0.1576, allocations: 0.7676 MB / 360 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004614/0.158, allocations: 251.9 kB / 360.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003451/0.1584, allocations: 282.9 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004464/0.1588, allocations: 354.6 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.174e-05/0.1589, allocations: 28 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.1591, allocations: 75.97 kB / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004773/0.1596, allocations: 0.5376 MB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.1599, allocations: 288.8 kB / 361.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.1614, allocations: 1.707 MB / 363.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1615, allocations: 0 / 363.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1615, allocations: 0 / 363.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.1615, allocations: 3.938 kB / 363.5 MB, free: 8.281 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002964/0.1645, allocations: 1.831 MB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.1645, allocations: 8.031 kB / 365.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/0.1648, allocations: 185.7 kB / 365.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.167, allocations: 1.397 MB / 367 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.1672, allocations: 106.6 kB / 367.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.852e-05/0.1673, allocations: 48 kB / 367.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.1685, allocations: 0.5932 MB / 367.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1685, allocations: 0 / 367.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.459e-05/0.1686, allocations: 20 kB / 367.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.1686, allocations: 12 kB / 367.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007829/0.1694, allocations: 355.7 kB / 368.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/0.1746, allocations: 3.289 MB / 371.4 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3236/0.4983, allocations: 424.6 kB / 371.8 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007254/0.4991, allocations: 193.8 kB / 372 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.4991, allocations: 4.156 kB / 372 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/0.4992, allocations: 38 kB / 372 MB, free: 24.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.568e-06/0.4992, allocations: 0 / 372 MB, free: 24.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002964/0.5022, allocations: 0.752 MB / 372.8 MB, free: 23.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/0.5023, allocations: 210 kB / 373 MB, free: 23.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006686/0.509, allocations: 2.897 MB / 375.9 MB, free: 23.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.5091, allocations: 34.58 kB / 375.9 MB, free: 23.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008546/0.51, allocations: 0.7833 MB / 376.7 MB, free: 22.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.5101, allocations: 68.72 kB / 376.8 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.5101, allocations: 9.375 kB / 376.8 MB, free: 22.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.24e-05/0.5102, allocations: 317.4 kB / 377.1 MB, free: 22.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.5107, allocations: 136 kB / 377.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.5112, allocations: 298.1 kB / 377.5 MB, free: 22.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/0.5116, allocations: 156.8 kB / 377.7 MB, free: 22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.5116, allocations: 1.156 kB / 377.7 MB, free: 22 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002015/0.5136, allocations: 0.6236 MB / 378.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5137, allocations: 11.11 kB / 378.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.5137, allocations: 3.938 kB / 378.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.514, allocations: 64.84 kB / 378.4 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.5144, allocations: 76.09 kB / 378.4 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.5161, allocations: 1.583 MB / 380 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007855/0.5169, allocations: 72.44 kB / 380.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.5169, allocations: 11.09 kB / 380.1 MB, free: 20.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * 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: 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 prepare postOptimizeDAE: time 0.001399/0.5183, allocations: 0.5786 MB / 380.7 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.5188, allocations: 162.5 kB / 380.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.5204, allocations: 0.5445 MB / 381.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5204, allocations: 3.125 kB / 381.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.5204, allocations: 4.469 kB / 381.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.5204, allocations: 2.734 kB / 381.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003868/0.5243, allocations: 1.721 MB / 383.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5243, allocations: 0.5625 kB / 383.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002985/0.5246, allocations: 55.03 kB / 383.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.5249, allocations: 49.14 kB / 383.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.5249, allocations: 6.875 kB / 383.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.5263, allocations: 1.525 MB / 384.7 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.5263, allocations: 3.938 kB / 384.7 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.5284, allocations: 0.7561 MB / 385.5 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009651/0.5293, allocations: 385.1 kB / 385.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.5295, allocations: 11.06 kB / 385.9 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.5299, allocations: 53.19 kB / 385.9 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.5301, allocations: 39.28 kB / 386 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.5301, allocations: 4.578 kB / 386 MB, free: 16.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004212/0.5343, allocations: 2.067 MB / 388.1 MB, free: 16.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5344, allocations: 0 / 388.1 MB, free: 16.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001342/0.5357, allocations: 196.1 kB / 388.2 MB, free: 16.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009946/0.5367, allocations: 370.5 kB / 388.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.538, allocations: 463.8 kB / 389.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5381, allocations: 0.9688 kB / 389.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.5386, allocations: 287.3 kB / 389.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.54, allocations: 216.8 kB / 389.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007095/0.5471, allocations: 3.473 MB / 393 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.5482, allocations: 1.353 MB / 394.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.5486, allocations: 80.47 kB / 394.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.753e-06/0.5487, allocations: 2.844 kB / 394.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Templates: time 0.03997/0.5886, allocations: 24.46 MB / 418.9 MB, free: 4.941 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_CellCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellCalcHelperMain.o] Error 1