Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) 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(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 96.02 kB / 16.37 MB, free: 5.961 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.001321/0.001322, allocations: 183.7 kB / 17.27 MB, free: 5.84 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.7/1.7, allocations: 223.3 MB / 241.3 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.07047/0.07047, allocations: 8.095 MB / 300.5 MB, free: 6.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 12 kB / 363.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3243, allocations: 52.51 MB / 416 MB, free: 24.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003267/0.3276, allocations: 2.892 MB / 418.9 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.3294, allocations: 1.225 MB / 420.1 MB, free: 20.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.3296, allocations: 4 kB / 420.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000525/0.3301, allocations: 155.2 kB / 420.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.3305, allocations: 147.1 kB / 420.4 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004807/0.331, allocations: 183.7 kB / 420.6 MB, free: 20.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.3314, allocations: 498.5 kB / 421.1 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.3316, allocations: 123.4 kB / 421.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.3318, allocations: 175.2 kB / 421.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.332, allocations: 199.1 kB / 421.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.363e-05/0.3321, allocations: 20 kB / 421.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.3322, allocations: 59.92 kB / 421.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.3324, allocations: 135.6 kB / 421.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.261e-05/0.3325, allocations: 109.4 kB / 421.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3329, allocations: 0.4948 MB / 422.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3329, allocations: 0 / 422.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3329, allocations: 0 / 422.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3329, allocations: 4 kB / 422.4 MB, free: 18.54 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001701/0.3346, allocations: 0.9855 MB / 423.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3347, allocations: 12.03 kB / 423.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.285e-05/0.3348, allocations: 55.34 kB / 423.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.3353, allocations: 477.4 kB / 423.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.3355, allocations: 64.5 kB / 424 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.287e-05/0.3356, allocations: 28 kB / 424 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.3363, allocations: 409.5 kB / 424.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3363, allocations: 3.953 kB / 424.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.3363, allocations: 12 kB / 424.4 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.3363, allocations: 12 kB / 424.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.3368, allocations: 266 kB / 424.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.3387, allocations: 1.543 MB / 426.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/0.3393, allocations: 323.5 kB / 426.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.3396, allocations: 124.8 kB / 426.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.3396, allocations: 4 kB / 426.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.3397, allocations: 38.56 kB / 426.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.3397, allocations: 0 / 426.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007654/0.3405, allocations: 352.4 kB / 427 MB, free: 13.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.3405, allocations: 221.5 kB / 427.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005626/0.3411, allocations: 0.5682 MB / 427.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3411, allocations: 33.7 kB / 427.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3413, allocations: 263.6 kB / 428.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.3413, allocations: 39.44 kB / 428.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.499e-05/0.3413, allocations: 8.094 kB / 428.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.784e-05/0.3414, allocations: 358.7 kB / 428.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.3417, allocations: 111.9 kB / 428.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.342, allocations: 227.2 kB / 428.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.3422, allocations: 99.84 kB / 428.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3422, allocations: 0 / 428.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005617/0.3428, allocations: 325 kB / 429.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3428, allocations: 8 kB / 429.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3428, allocations: 0 / 429.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.3429, allocations: 4 kB / 429.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.3431, allocations: 55.91 kB / 429.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3431, allocations: 7.984 kB / 429.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.3436, allocations: 139.8 kB / 429.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.3437, allocations: 12 kB / 429.5 MB, free: 11.03 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.000194/0.3439, allocations: 190.2 kB / 429.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.805e-05/0.344, allocations: 55.42 kB / 429.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006551/0.3446, allocations: 281.2 kB / 430 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3446, allocations: 4 kB / 430 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3447, allocations: 0 / 430 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3447, allocations: 0 / 430 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.3457, allocations: 0.7877 MB / 430.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3457, allocations: 0 / 430.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002265/0.346, allocations: 35.97 kB / 430.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.346, allocations: 128 / 430.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.346, allocations: 8 kB / 430.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.346, allocations: 4.031 kB / 430.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.346, allocations: 0 / 430.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008181/0.3468, allocations: 0.5033 MB / 431.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.347, allocations: 164.5 kB / 431.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.3471, allocations: 4 kB / 431.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.3476, allocations: 143.9 kB / 431.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/0.3479, allocations: 131.8 kB / 431.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.348, allocations: 8 kB / 431.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003956/0.3484, allocations: 423.1 kB / 432.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3484, allocations: 0 / 432.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003965/0.3488, allocations: 95.84 kB / 432.3 MB, free: 8.113 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.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 (13): * Single equations (assignments): 13 * 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.000804/0.3496, allocations: 369.3 kB / 432.7 MB, free: 7.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005998/0.3502, allocations: 263.8 kB / 432.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3502, allocations: 0 / 432.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003028/0.3505, allocations: 156.3 kB / 433.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.3511, allocations: 109.7 kB / 433.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.3527, allocations: 1.017 MB / 434.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.353, allocations: 0.8233 MB / 435 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3532, allocations: 35.44 kB / 435 MB, free: 5.426 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3532, allocations: 0 / 435 MB, free: 5.426 MB / 302.1 MB Notification: Performance of Templates: time 0.009681/0.3629, allocations: 6.809 MB / 441.9 MB, free: 14.64 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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 OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSLCalcHelperMain.o OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSLCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSLCalcHelperMain.o] Error 1