Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 92.11 kB / 17.63 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 192.5 kB / 18.54 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.673/1.673, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002874, allocations: 4 kB / 307.3 MB, free: 1.617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.134, allocations: 51.49 MB / 358.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005933/0.14, allocations: 5.072 MB / 363.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004521/0.1446, allocations: 2.549 MB / 366.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006075/0.1452, allocations: 19.94 kB / 366.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.1467, allocations: 0.6927 MB / 367.1 MB, free: 5.75 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.001068/0.1477, allocations: 485.7 kB / 367.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1488, allocations: 387 kB / 368 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.1504, allocations: 1.395 MB / 369.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006559/0.1511, allocations: 447.2 kB / 369.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005721/0.1517, allocations: 494 kB / 370.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007122/0.1524, allocations: 0.6107 MB / 370.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.1525, allocations: 64 kB / 371 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.1528, allocations: 124 kB / 371.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005252/0.1534, allocations: 0.5608 MB / 371.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002969/0.1537, allocations: 336.6 kB / 372 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2356/0.3893, allocations: 1.949 MB / 373.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.247e-05/0.3894, allocations: 0.6094 kB / 373.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.369e-06/0.3894, allocations: 0.5312 kB / 373.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001121/0.3895, allocations: 0 / 373.9 MB, free: 10.95 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.006326/0.3959, allocations: 2.334 MB / 376.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.314e-05/0.3959, allocations: 9.094 kB / 376.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006773/0.3966, allocations: 229.6 kB / 376.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.3999, allocations: 1.446 MB / 377.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005793/0.4005, allocations: 188 kB / 378.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001902/0.4007, allocations: 89.14 kB / 378.2 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.4036, allocations: 1.128 MB / 379.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.4036, allocations: 1.812 kB / 379.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.4037, allocations: 39.94 kB / 379.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.4037, allocations: 20.75 kB / 379.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.4056, allocations: 0.7431 MB / 380.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009072/0.4147, allocations: 4.711 MB / 384.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.4164, allocations: 0.9957 MB / 385.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000872/0.4173, allocations: 420 kB / 386.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.4174, allocations: 11.2 kB / 386.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.4174, allocations: 44 kB / 386.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.495e-06/0.4174, allocations: 1.188 kB / 386.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002612/0.4201, allocations: 0.9024 MB / 387.2 MB, free: 6.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/0.4202, allocations: 425.3 kB / 387.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005573/0.4258, allocations: 2.765 MB / 390.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.426, allocations: 34.95 kB / 390.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008041/0.4268, allocations: 0.882 MB / 391.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.427, allocations: 154.2 kB / 391.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-05/0.4271, allocations: 14.38 kB / 391.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.4272, allocations: 331.2 kB / 391.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007173/0.4279, allocations: 283.8 kB / 392.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008233/0.4287, allocations: 0.5635 MB / 392.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006471/0.4294, allocations: 312.1 kB / 392.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.4294, allocations: 4.734 kB / 392.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002211/0.4316, allocations: 0.9044 MB / 393.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.4316, allocations: 8.25 kB / 393.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.4317, allocations: 5.5 kB / 393.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.411e-05/0.4317, allocations: 9.906 kB / 393.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.4324, allocations: 180.8 kB / 394.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.4324, allocations: 11.86 kB / 394.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.4339, allocations: 216.7 kB / 394.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-05/0.434, allocations: 30.64 kB / 394.3 MB, free: 3.395 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.001322/0.4353, allocations: 0.5541 MB / 394.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.4358, allocations: 185 kB / 395 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.4377, allocations: 0.7565 MB / 395.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.4377, allocations: 3.25 kB / 395.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.4377, allocations: 3.625 kB / 395.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4377, allocations: 4 kB / 395.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/0.4417, allocations: 2.209 MB / 398 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4417, allocations: 0 / 398 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/0.4422, allocations: 126.6 kB / 398.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.4423, allocations: 3.531 kB / 398.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.853e-05/0.4423, allocations: 11.89 kB / 398.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.4423, allocations: 3.969 kB / 398.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4423, allocations: 0 / 398.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.4445, allocations: 1.133 MB / 399.3 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007682/0.4453, allocations: 416.8 kB / 399.7 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.4455, allocations: 12.78 kB / 399.7 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.4466, allocations: 205.9 kB / 399.9 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/0.4469, allocations: 156.4 kB / 400.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.685e-05/0.447, allocations: 21.7 kB / 400.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003652/0.4506, allocations: 1.959 MB / 402 MB, free: 14.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4507, allocations: 1.5 kB / 402 MB, free: 14.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001562/0.4522, allocations: 311.1 kB / 402.3 MB, free: 14.23 MB / 318.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.00128/0.4535, allocations: 488 kB / 402.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.4552, allocations: 0.6425 MB / 403.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.4552, allocations: 4.312 kB / 403.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008767/0.4561, allocations: 381.2 kB / 403.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/0.4581, allocations: 310.8 kB / 404.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008006/0.4661, allocations: 4.069 MB / 408.2 MB, free: 8.531 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.4676, allocations: 1.429 MB / 409.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000776/0.4684, allocations: 111.4 kB / 409.8 MB, free: 6.965 MB / 318.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4684, allocations: 0 / 409.8 MB, free: 6.965 MB / 318.1 MB Notification: Performance of Templates: time 0.04646/0.5148, allocations: 22.89 MB / 432.6 MB, free: 184 kB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o] Error 1