Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008302/0.0008304, allocations: 92.38 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.0008865/0.0008865, allocations: 178.5 kB / 17.84 MB, free: 5.617 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.726/1.726, allocations: 223.2 MB / 241.8 MB, free: 264 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002738, allocations: 7.984 kB / 301.4 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 50.42 MB / 351.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004325/0.1372, allocations: 3.429 MB / 355.3 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003219/0.1405, allocations: 1.762 MB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005728/0.1411, allocations: 11.94 kB / 357.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.1424, allocations: 0.5451 MB / 357.6 MB, free: 14.23 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.0006669/0.1431, allocations: 302.7 kB / 357.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006735/0.1438, allocations: 214.7 kB / 358.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.1449, allocations: 0.8453 MB / 359 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004832/0.1454, allocations: 256.3 kB / 359.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.1458, allocations: 302.9 kB / 359.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005297/0.1463, allocations: 402.5 kB / 359.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.991e-05/0.1464, allocations: 36 kB / 359.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.1467, allocations: 83.98 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003837/0.1471, allocations: 438.7 kB / 360.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.1473, allocations: 241 kB / 360.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.1487, allocations: 1.383 MB / 362.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.1487, allocations: 4 kB / 362.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1487, allocations: 0 / 362.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1487, allocations: 0 / 362.1 MB, free: 9.754 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00254/0.1513, allocations: 1.6 MB / 363.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.1514, allocations: 8.031 kB / 363.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/0.1516, allocations: 165.9 kB / 363.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/0.1533, allocations: 1.103 MB / 364.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.1536, allocations: 144.3 kB / 365.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.969e-05/0.1537, allocations: 48 kB / 365.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.1549, allocations: 0.6751 MB / 365.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1549, allocations: 3.938 kB / 365.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/0.155, allocations: 27.98 kB / 365.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.155, allocations: 15.98 kB / 365.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008469/0.1559, allocations: 447.7 kB / 366.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.1603, allocations: 2.922 MB / 369.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.1614, allocations: 464.7 kB / 369.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007261/0.1621, allocations: 347.5 kB / 370 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.1622, allocations: 0 / 370 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.1622, allocations: 46.48 kB / 370 MB, free: 1.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.1622, allocations: 0 / 370 MB, free: 1.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002106/0.1644, allocations: 0.834 MB / 370.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.1645, allocations: 265 kB / 371.1 MB, free: 312 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2736/0.4381, allocations: 2.228 MB / 373.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.4383, allocations: 32.89 kB / 373.4 MB, free: 23.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007687/0.439, allocations: 0.6377 MB / 374 MB, free: 23.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4392, allocations: 105.5 kB / 374.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/0.4392, allocations: 5.469 kB / 374.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.441e-05/0.4393, allocations: 321.8 kB / 374.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.4398, allocations: 177 kB / 374.6 MB, free: 23.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005512/0.4404, allocations: 319.8 kB / 374.9 MB, free: 23.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.4409, allocations: 209.6 kB / 375.2 MB, free: 23.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4409, allocations: 2.188 kB / 375.2 MB, free: 23.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001628/0.4425, allocations: 0.6328 MB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4426, allocations: 5.219 kB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4426, allocations: 2 kB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.4429, allocations: 77.27 kB / 375.9 MB, free: 22.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/0.4434, allocations: 101.8 kB / 376 MB, free: 22.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.4453, allocations: 1.616 MB / 377.6 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007003/0.4461, allocations: 66.89 kB / 377.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.4461, allocations: 11.8 kB / 377.7 MB, free: 21.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.001142/0.4473, allocations: 496.1 kB / 378.1 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.4476, allocations: 133.7 kB / 378.3 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000301/0.4479, allocations: 160.2 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.4479, allocations: 4.75 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4479, allocations: 5.469 kB / 378.4 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4479, allocations: 1.406 kB / 378.4 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/0.4516, allocations: 1.706 MB / 380.2 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.4516, allocations: 2.734 kB / 380.2 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/0.452, allocations: 76.2 kB / 380.2 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002531/0.4523, allocations: 70.64 kB / 380.3 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.4524, allocations: 13.56 kB / 380.3 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.4541, allocations: 1.568 MB / 381.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4541, allocations: 0 / 381.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.4564, allocations: 0.8617 MB / 382.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006543/0.457, allocations: 329.8 kB / 383.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.4572, allocations: 12.55 kB / 383.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.4577, allocations: 71.33 kB / 383.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4578, allocations: 30.73 kB / 383.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.4579, allocations: 8.031 kB / 383.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003246/0.4611, allocations: 1.6 MB / 384.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.4611, allocations: 1.25 kB / 384.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001105/0.4623, allocations: 208.5 kB / 385 MB, free: 17.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.001351/0.4636, allocations: 469 kB / 385.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.4651, allocations: 0.5395 MB / 386 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.4651, allocations: 1.312 kB / 386 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006523/0.4658, allocations: 331.5 kB / 386.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.467, allocations: 196.2 kB / 386.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00584/0.4728, allocations: 3.006 MB / 389.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.474, allocations: 1.261 MB / 390.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.4743, allocations: 69.81 kB / 390.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4743, allocations: 0 / 390.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Templates: time 0.03568/0.51, allocations: 20.73 MB / 411.6 MB, free: 12.41 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVchargingCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.o] Error 1