Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008712/0.0008708, allocations: 95.47 kB / 17.64 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 194.2 kB / 18.54 MB, free: 5.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.744/1.744, allocations: 227.3 MB / 246.6 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002336/0.0002336, allocations: 7.938 kB / 307.3 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1326, allocations: 51.49 MB / 358.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006337/0.139, allocations: 3.463 MB / 362.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003853/0.1429, allocations: 1.922 MB / 364.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006594/0.1436, allocations: 11.94 kB / 364.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.1452, allocations: 0.5373 MB / 364.7 MB, free: 7.98 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.001151/0.1464, allocations: 342.5 kB / 365.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009174/0.1473, allocations: 211.2 kB / 365.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1486, allocations: 0.8415 MB / 366.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.1491, allocations: 264.1 kB / 366.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.1495, allocations: 306.8 kB / 366.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000496/0.15, allocations: 402.4 kB / 367.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.443e-05/0.1501, allocations: 36 kB / 367.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.1503, allocations: 87.97 kB / 367.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004677/0.1508, allocations: 434.7 kB / 367.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.1511, allocations: 241 kB / 367.8 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.1525, allocations: 1.395 MB / 369.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1525, allocations: 8 kB / 369.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1525, allocations: 0 / 369.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.1525, allocations: 3.938 kB / 369.2 MB, free: 3.438 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.00278/0.1553, allocations: 1.608 MB / 370.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.1554, allocations: 12.03 kB / 370.9 MB, free: 1.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.1556, allocations: 158 kB / 371 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/0.1574, allocations: 1.107 MB / 372.1 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003655/0.1578, allocations: 140.3 kB / 372.3 MB, free: 308 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.352e-05/0.1579, allocations: 48 kB / 372.3 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2991/0.457, allocations: 0.672 MB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.4571, allocations: 1.156 kB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.289e-05/0.4572, allocations: 19.72 kB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.4572, allocations: 12.19 kB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.4587, allocations: 454.6 kB / 373.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007328/0.466, allocations: 2.934 MB / 376.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.4673, allocations: 472.8 kB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000777/0.4681, allocations: 336.3 kB / 377.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.4682, allocations: 2.75 kB / 377.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.4682, allocations: 46.62 kB / 377.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.637e-06/0.4682, allocations: 0 / 377.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002591/0.4708, allocations: 0.8374 MB / 378.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.068e-05/0.4709, allocations: 263.2 kB / 378.3 MB, free: 17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/0.4754, allocations: 2.238 MB / 380.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.4755, allocations: 32.42 kB / 380.6 MB, free: 16.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006378/0.4761, allocations: 0.6494 MB / 381.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.4763, allocations: 104 kB / 381.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/0.4763, allocations: 7.641 kB / 381.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.4764, allocations: 322.3 kB / 381.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004837/0.4769, allocations: 178.7 kB / 381.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005666/0.4774, allocations: 320.4 kB / 382.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.4779, allocations: 202 kB / 382.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.4779, allocations: 1.688 kB / 382.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001644/0.4796, allocations: 0.6395 MB / 383 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.4796, allocations: 6.5 kB / 383 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4796, allocations: 2.031 kB / 383 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003687/0.48, allocations: 71.23 kB / 383.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.4805, allocations: 100.4 kB / 383.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.4822, allocations: 1.631 MB / 384.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006966/0.4829, allocations: 69.5 kB / 384.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.483, allocations: 16.48 kB / 384.9 MB, free: 13.19 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.00126/0.4842, allocations: 485 kB / 385.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.4845, allocations: 135.8 kB / 385.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.4849, allocations: 160.5 kB / 385.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.4849, allocations: 3.922 kB / 385.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4849, allocations: 1.156 kB / 385.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4849, allocations: 5.547 kB / 385.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.4883, allocations: 1.703 MB / 387.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4883, allocations: 1.344 kB / 387.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.4887, allocations: 85.23 kB / 387.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002357/0.489, allocations: 61.72 kB / 387.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.489, allocations: 8.688 kB / 387.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.4904, allocations: 1.583 MB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.4904, allocations: 1.5 kB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.4923, allocations: 0.8616 MB / 390 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000628/0.493, allocations: 336.5 kB / 390.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.4931, allocations: 7.438 kB / 390.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.4936, allocations: 62.33 kB / 390.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.4937, allocations: 35.73 kB / 390.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.4938, allocations: 10.84 kB / 390.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00287/0.4966, allocations: 1.615 MB / 392 MB, free: 9.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4967, allocations: 1 kB / 392 MB, free: 9.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001053/0.4977, allocations: 199.8 kB / 392.2 MB, free: 9.219 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.00116/0.4989, allocations: 468.7 kB / 392.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.5001, allocations: 0.528 MB / 393.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5001, allocations: 1.312 kB / 393.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.5007, allocations: 334.4 kB / 393.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.5018, allocations: 197.2 kB / 393.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/0.5071, allocations: 3.014 MB / 396.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008284/0.508, allocations: 1.255 MB / 398 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.5083, allocations: 71.92 kB / 398.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5083, allocations: 0 / 398.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of Templates: time 0.03979/0.5481, allocations: 20.82 MB / 418.9 MB, free: 1.496 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.o] Error 1