Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009598/0.0009599, allocations: 89.81 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.001167/0.001168, allocations: 189.4 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.472/1.472, allocations: 223.2 MB / 241.3 MB, free: 316 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05576/0.05576, allocations: 8.1 MB / 300.5 MB, free: 6.766 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.0003289, allocations: 8 kB / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2837, allocations: 52.51 MB / 416 MB, free: 24.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004143/0.2879, allocations: 3.975 MB / 420 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.2906, allocations: 1.597 MB / 421.6 MB, free: 19.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.2909, allocations: 16 kB / 421.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007305/0.2917, allocations: 434.5 kB / 422 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000594/0.2923, allocations: 354.4 kB / 422.4 MB, free: 18.56 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.2937, allocations: 0.8534 MB / 423.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006748/0.2944, allocations: 0.7319 MB / 423.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.2948, allocations: 257.4 kB / 424.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.295, allocations: 310.8 kB / 424.5 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005372/0.2956, allocations: 494.3 kB / 425 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.727e-05/0.2956, allocations: 36 kB / 425 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000463/0.2961, allocations: 247.8 kB / 425.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000267/0.2964, allocations: 390.8 kB / 425.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.2966, allocations: 233 kB / 425.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009148/0.2975, allocations: 1.265 MB / 427.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2975, allocations: 7.938 kB / 427.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2975, allocations: 4 kB / 427.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.2975, allocations: 0 / 427.1 MB, free: 13.76 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003364/0.3009, allocations: 1.696 MB / 428.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3009, allocations: 8.031 kB / 428.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.3012, allocations: 150.3 kB / 429 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.3023, allocations: 0.919 MB / 429.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.3024, allocations: 215.5 kB / 430.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-05/0.3025, allocations: 71.92 kB / 430.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.3037, allocations: 0.8279 MB / 431 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3037, allocations: 0 / 431 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.3038, allocations: 31.94 kB / 431.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.3038, allocations: 19.89 kB / 431.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.3049, allocations: 0.6845 MB / 431.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004626/0.3096, allocations: 3.593 MB / 435.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.3114, allocations: 1.429 MB / 436.8 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007073/0.3122, allocations: 0.5128 MB / 437.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/0.3123, allocations: 102.1 kB / 437.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008114/0.3132, allocations: 0.5437 MB / 437.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 4.408e-06/0.3132, allocations: 3.938 kB / 437.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.006842/0.32, allocations: 2.624 MB / 440.6 MB, free: 15.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3202, allocations: 270 kB / 440.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/0.3226, allocations: 1.787 MB / 442.6 MB, free: 13.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.151e-05/0.3227, allocations: 45.7 kB / 442.7 MB, free: 13.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004662/0.3232, allocations: 493.6 kB / 443.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002867/0.3234, allocations: 291.6 kB / 443.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.3235, allocations: 20 kB / 443.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3236, allocations: 334 kB / 443.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006271/0.3243, allocations: 365.8 kB / 444.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/0.325, allocations: 0.4949 MB / 444.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/0.3257, allocations: 395.8 kB / 445 MB, free: 11.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3257, allocations: 4 kB / 445 MB, free: 11.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003054/0.3288, allocations: 1.442 MB / 446.5 MB, free: 9.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3288, allocations: 4 kB / 446.5 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3288, allocations: 7.938 kB / 446.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.3305, allocations: 0.5527 MB / 447 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.331, allocations: 123.8 kB / 447.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.3325, allocations: 1.193 MB / 448.3 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005998/0.3332, allocations: 87.34 kB / 448.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/0.3332, allocations: 31.98 kB / 448.5 MB, free: 7.738 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,n2.y,n1.y,o.y,$PRE.delay.y,delay.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {12 22} Notification: Performance of prepare postOptimizeDAE: time 0.0007346/0.334, allocations: 448.4 kB / 448.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.3341, allocations: 122.5 kB / 449 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/0.3373, allocations: 1.526 MB / 450.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.3373, allocations: 12 kB / 450.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3373, allocations: 0 / 450.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3374, allocations: 3.984 kB / 450.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005354/0.3427, allocations: 3.185 MB / 453.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.3428, allocations: 0 / 453.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.3432, allocations: 111.8 kB / 453.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/0.3448, allocations: 0.5396 MB / 454.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.755e-05/0.3449, allocations: 23.98 kB / 454.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/0.3465, allocations: 1.163 MB / 455.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3465, allocations: 4 kB / 455.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.3505, allocations: 2.031 MB / 457.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005438/0.3511, allocations: 275.3 kB / 457.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.3513, allocations: 20 kB / 457.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.3518, allocations: 64.02 kB / 458 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.352, allocations: 76.84 kB / 458 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.352, allocations: 27.98 kB / 458.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001812/0.3538, allocations: 1.289 MB / 459.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3539, allocations: 0 / 459.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007843/0.3546, allocations: 231.7 kB / 459.6 MB, free: 12.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {12 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007995/0.3555, allocations: 305.2 kB / 459.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002725/0.3582, allocations: 1.116 MB / 461 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3582, allocations: 0 / 461 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.3599, allocations: 0.6921 MB / 461.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008762/0.3608, allocations: 108.4 kB / 461.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/0.3659, allocations: 2.874 MB / 464.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008753/0.3668, allocations: 1.173 MB / 465.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.3671, allocations: 79.41 kB / 465.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3671, allocations: 4 kB / 465.9 MB, free: 6.125 MB / 334.1 MB Notification: Performance of Templates: time 0.02962/0.3967, allocations: 19.19 MB / 485.1 MB, free: 2.941 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.Examples.MixingOneSourceOneBatteryOneDieselOneLoadCalcHelperMain.o OMCppPowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoadCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoadCalcHelperMain.o] Error 1