Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009452/0.0009453, allocations: 93.73 kB / 16.95 MB, free: 5.938 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.001012/0.001013, allocations: 178.7 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.554/1.554, allocations: 223.2 MB / 241.8 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003654, allocations: 5.469 kB / 301.4 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1721, allocations: 50.42 MB / 351.9 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008633/0.1808, allocations: 5.038 MB / 356.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007045/0.1879, allocations: 2.386 MB / 359.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.19, allocations: 23.88 kB / 359.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002924/0.193, allocations: 0.6888 MB / 360 MB, free: 11.85 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.002345/0.1953, allocations: 457.7 kB / 360.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.1971, allocations: 378.3 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003159/0.2003, allocations: 1.391 MB / 362.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009861/0.2013, allocations: 447.2 kB / 362.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.2026, allocations: 490.1 kB / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.2037, allocations: 0.5991 MB / 363.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.2038, allocations: 60 kB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005475/0.2044, allocations: 127.9 kB / 363.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006961/0.2051, allocations: 0.553 MB / 364.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005665/0.2057, allocations: 340.6 kB / 364.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.2083, allocations: 1.944 MB / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.382e-05/0.2083, allocations: 4 kB / 366.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.369e-06/0.2083, allocations: 0 / 366.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.551e-05/0.2084, allocations: 0 / 366.7 MB, free: 5.07 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.006765/0.2152, allocations: 2.327 MB / 369.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.771e-05/0.2153, allocations: 12.03 kB / 369.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00077/0.2161, allocations: 221.3 kB / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003086/0.2192, allocations: 1.441 MB / 370.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005291/0.2197, allocations: 187.6 kB / 370.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.2199, allocations: 87.94 kB / 371 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3147/0.5346, allocations: 1.122 MB / 372.1 MB, free: 23.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.5346, allocations: 1.75 kB / 372.1 MB, free: 23.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.5348, allocations: 40.22 kB / 372.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.5348, allocations: 24.12 kB / 372.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.5368, allocations: 0.7422 MB / 372.9 MB, free: 23.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009478/0.5463, allocations: 4.714 MB / 377.6 MB, free: 20.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.5479, allocations: 0.9996 MB / 378.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009156/0.5488, allocations: 416.6 kB / 379.1 MB, free: 20.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.277e-05/0.5489, allocations: 6.5 kB / 379.1 MB, free: 20.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.549, allocations: 52.81 kB / 379.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/0.549, allocations: 0 / 379.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002424/0.5514, allocations: 0.9017 MB / 380 MB, free: 19.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.5516, allocations: 423.4 kB / 380.4 MB, free: 19.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004787/0.5564, allocations: 2.736 MB / 383.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.5565, allocations: 39.33 kB / 383.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007398/0.5573, allocations: 0.8793 MB / 384.1 MB, free: 17.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.5574, allocations: 156 kB / 384.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.5575, allocations: 14.22 kB / 384.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.659e-05/0.5576, allocations: 327.4 kB / 384.6 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007161/0.5583, allocations: 287.9 kB / 384.9 MB, free: 17.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008542/0.5591, allocations: 0.5584 MB / 385.4 MB, free: 16.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006517/0.5598, allocations: 305.5 kB / 385.7 MB, free: 16.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.5598, allocations: 1.219 kB / 385.7 MB, free: 16.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002105/0.5619, allocations: 0.9162 MB / 386.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.562, allocations: 10.53 kB / 386.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.562, allocations: 4.906 kB / 386.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/0.562, allocations: 10.91 kB / 386.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006529/0.5627, allocations: 175.2 kB / 386.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.5627, allocations: 12.62 kB / 386.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.5639, allocations: 212 kB / 387 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.564, allocations: 30.92 kB / 387.1 MB, free: 16.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on1,pulseSeries.on2,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001123/0.5651, allocations: 0.5536 MB / 387.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002958/0.5654, allocations: 175.3 kB / 387.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.5671, allocations: 0.7584 MB / 388.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.5671, allocations: 4.188 kB / 388.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.5671, allocations: 1.125 kB / 388.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.5671, allocations: 3.984 kB / 388.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.5709, allocations: 2.187 MB / 390.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5709, allocations: 3.969 kB / 390.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004913/0.5714, allocations: 122.7 kB / 390.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.5714, allocations: 8.062 kB / 390.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.5715, allocations: 9.875 kB / 390.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.5715, allocations: 7.688 kB / 390.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5715, allocations: 0 / 390.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.5735, allocations: 1.138 MB / 392 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006522/0.5742, allocations: 416.9 kB / 392.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.5744, allocations: 17.48 kB / 392.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00095/0.5754, allocations: 197.1 kB / 392.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/0.5757, allocations: 156.5 kB / 392.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.5757, allocations: 21.73 kB / 392.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002698/0.5784, allocations: 1.946 MB / 394.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5784, allocations: 0 / 394.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001016/0.5795, allocations: 308.4 kB / 395.1 MB, free: 11.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001111/0.5806, allocations: 486.2 kB / 395.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.5819, allocations: 0.6396 MB / 396.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.5819, allocations: 8.875 kB / 396.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006287/0.5825, allocations: 379.8 kB / 396.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.5838, allocations: 313.4 kB / 396.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00516/0.5889, allocations: 4.051 MB / 400.9 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007798/0.5897, allocations: 1.425 MB / 402.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004032/0.5901, allocations: 103.4 kB / 402.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5902, allocations: 4 kB / 402.5 MB, free: 4.871 MB / 302.1 MB Notification: Performance of Templates: time 0.04219/0.6324, allocations: 22.77 MB / 425.2 MB, free: 14.2 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeChargeCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o] Error 1