Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008465/0.0008465, allocations: 89.55 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009805/0.0009807, allocations: 201.6 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.751/1.751, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002709/0.000271, allocations: 4 kB / 307.3 MB, free: 1.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1323, allocations: 51.5 MB / 358.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006324/0.1387, allocations: 5.29 MB / 364.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003943/0.1427, allocations: 2.133 MB / 366.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005883/0.1433, allocations: 19.88 kB / 366.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.1446, allocations: 0.5683 MB / 366.8 MB, free: 6.086 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0008342/0.1455, allocations: 374.2 kB / 367.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008325/0.1463, allocations: 271.3 kB / 367.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.1476, allocations: 1.11 MB / 368.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.1483, allocations: 359.3 kB / 368.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005055/0.1488, allocations: 390.5 kB / 369.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1494, allocations: 470.1 kB / 369.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.889e-05/0.1495, allocations: 44 kB / 369.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002783/0.1498, allocations: 99.97 kB / 369.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004682/0.1502, allocations: 0.5881 MB / 370.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00032/0.1506, allocations: 344.6 kB / 370.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2216/0.3722, allocations: 2.13 MB / 372.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.125e-05/0.3723, allocations: 0.8125 kB / 372.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3723, allocations: 0.5625 kB / 372.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.111e-05/0.3724, allocations: 0 / 372.9 MB, free: 11.55 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.004526/0.3769, allocations: 2.074 MB / 375 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.377, allocations: 9.75 kB / 375 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003562/0.3773, allocations: 216.8 kB / 375.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.3805, allocations: 1.57 MB / 376.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.3808, allocations: 142.9 kB / 376.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.381, allocations: 64.47 kB / 377 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.3829, allocations: 0.8358 MB / 377.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.3829, allocations: 0.7031 kB / 377.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.494e-05/0.383, allocations: 25.66 kB / 377.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.736e-05/0.3831, allocations: 15.72 kB / 377.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.3845, allocations: 0.5555 MB / 378.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007854/0.3923, allocations: 4.05 MB / 382.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.3939, allocations: 0.5724 MB / 383.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009219/0.3949, allocations: 379.6 kB / 383.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.3949, allocations: 6.344 kB / 383.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/0.395, allocations: 42.05 kB / 383.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.356e-06/0.395, allocations: 0 / 383.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.003048/0.3981, allocations: 0.9909 MB / 384.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.3982, allocations: 265.9 kB / 384.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005798/0.404, allocations: 3.163 MB / 387.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-05/0.4041, allocations: 37.83 kB / 387.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.4051, allocations: 0.8647 MB / 388.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.4053, allocations: 112 kB / 388.9 MB, free: 6.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.4053, allocations: 9.469 kB / 388.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4054, allocations: 322 kB / 389.2 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000539/0.406, allocations: 222.7 kB / 389.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.4066, allocations: 403.9 kB / 389.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006172/0.4072, allocations: 272.4 kB / 390.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.4073, allocations: 2.125 kB / 390.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002194/0.4095, allocations: 0.8394 MB / 390.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4095, allocations: 8.078 kB / 390.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.4095, allocations: 3.781 kB / 391 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.4099, allocations: 77.52 kB / 391 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005251/0.4104, allocations: 115 kB / 391.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.4125, allocations: 1.651 MB / 392.8 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009937/0.4135, allocations: 85.86 kB / 392.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.984e-05/0.4136, allocations: 21.31 kB / 392.9 MB, free: 3.746 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.001589/0.4152, allocations: 0.6524 MB / 393.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003621/0.4155, allocations: 183.2 kB / 393.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003707/0.4159, allocations: 230.7 kB / 394 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.4159, allocations: 10.14 kB / 394 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.416, allocations: 1.125 kB / 394 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.416, allocations: 0 / 394 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.42, allocations: 2.185 MB / 396.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.42, allocations: 0.9688 kB / 396.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.4204, allocations: 88.78 kB / 396.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.4206, allocations: 61.83 kB / 396.3 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.4207, allocations: 11.77 kB / 396.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/0.422, allocations: 1.593 MB / 397.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.422, allocations: 0 / 397.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.4241, allocations: 1.034 MB / 398.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008823/0.425, allocations: 450.7 kB / 399.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.4252, allocations: 9.344 kB / 399.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.4257, allocations: 69.06 kB / 399.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.4259, allocations: 40.38 kB / 399.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.4259, allocations: 6.344 kB / 399.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004414/0.4303, allocations: 2.257 MB / 401.8 MB, free: 14.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4303, allocations: 0 / 401.8 MB, free: 14.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001348/0.4317, allocations: 259.4 kB / 402 MB, free: 14.14 MB / 318.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.001429/0.4331, allocations: 467.1 kB / 402.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.4347, allocations: 0.6278 MB / 403.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4348, allocations: 0 / 403.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006603/0.4354, allocations: 384.6 kB / 403.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.4369, allocations: 282.9 kB / 403.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008481/0.4454, allocations: 4.12 MB / 407.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.4469, allocations: 1.485 MB / 409.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005968/0.4475, allocations: 98.8 kB / 409.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4475, allocations: 4 kB / 409.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of Templates: time 0.05598/0.5035, allocations: 29.28 MB / 438.7 MB, free: 9.57 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.o] Error 1