Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 94.05 kB / 16.95 MB, free: 5.676 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.001727/0.001727, allocations: 184.8 kB / 17.84 MB, free: 5.324 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.749/1.749, allocations: 223.2 MB / 241.9 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002725/0.0002726, allocations: 4 kB / 301.4 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 50.42 MB / 351.9 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003364/0.1371, allocations: 2.505 MB / 354.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1385, allocations: 0.6858 MB / 355.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.1387, allocations: 8 kB / 355.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1389, allocations: 43.62 kB / 355.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002438/0.1392, allocations: 95.28 kB / 355.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1395, allocations: 75.92 kB / 355.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.1399, allocations: 382.3 kB / 355.7 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.1402, allocations: 149.1 kB / 355.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.1404, allocations: 119.5 kB / 355.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002527/0.1406, allocations: 151.3 kB / 356.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.1407, allocations: 16 kB / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1408, allocations: 27.98 kB / 356.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1409, allocations: 83.64 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.455e-05/0.141, allocations: 93.52 kB / 356.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.1414, allocations: 383.1 kB / 356.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1414, allocations: 0 / 356.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1414, allocations: 4 kB / 356.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.1414, allocations: 0 / 356.7 MB, free: 15.19 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001438/0.1429, allocations: 0.7718 MB / 357.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1429, allocations: 8.031 kB / 357.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.655e-05/0.143, allocations: 39.53 kB / 357.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.1434, allocations: 333.4 kB / 357.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.1435, allocations: 20.66 kB / 357.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.1435, allocations: 32 kB / 357.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.1441, allocations: 345.8 kB / 358.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.1441, allocations: 0 / 358.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.1442, allocations: 12 kB / 358.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1442, allocations: 11.98 kB / 358.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.1447, allocations: 242.4 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.1466, allocations: 1.315 MB / 359.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.147, allocations: 182.5 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.1473, allocations: 124.8 kB / 360.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.1473, allocations: 4 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.1474, allocations: 34.5 kB / 360.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1474, allocations: 0 / 360.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005037/0.1479, allocations: 237.5 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.1479, allocations: 59.36 kB / 360.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.1483, allocations: 315 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.1484, allocations: 25.7 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.1485, allocations: 208 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.074e-05/0.1486, allocations: 51.2 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-05/0.1486, allocations: 8 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1488, allocations: 334.8 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1489, allocations: 79.95 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.1491, allocations: 127.7 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.1492, allocations: 71.83 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1492, allocations: 4 kB / 361.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003763/0.1496, allocations: 235.9 kB / 361.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1496, allocations: 8 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1496, allocations: 0 / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1496, allocations: 8.25 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.1498, allocations: 47.91 kB / 361.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1498, allocations: 11.95 kB / 361.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.1502, allocations: 83.77 kB / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.1502, allocations: 16 kB / 362 MB, free: 9.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.000152/0.1504, allocations: 153.7 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.184e-05/0.1504, allocations: 23.72 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.1508, allocations: 199.7 kB / 362.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1508, allocations: 4 kB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1509, allocations: 4 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1509, allocations: 3.953 kB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000728/0.1516, allocations: 0.624 MB / 363 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1516, allocations: 0 / 363 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.1518, allocations: 31.98 kB / 363 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1518, allocations: 0 / 363 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1518, allocations: 3.984 kB / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.1518, allocations: 7.953 kB / 363 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1518, allocations: 7.969 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.1523, allocations: 375.1 kB / 363.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/0.1524, allocations: 112.8 kB / 363.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.1524, allocations: 7.984 kB / 363.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.1528, allocations: 75.98 kB / 363.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.153, allocations: 83.83 kB / 363.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.153, allocations: 7.984 kB / 363.7 MB, free: 7.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.1533, allocations: 230 kB / 363.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1533, allocations: 0 / 363.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004532/0.1537, allocations: 83.69 kB / 364 MB, free: 7.445 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * 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.000153/0.1539, allocations: 111.2 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.1542, allocations: 176.2 kB / 364.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1542, allocations: 4.062 kB / 364.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.1544, allocations: 107.9 kB / 364.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.1549, allocations: 51.61 kB / 364.4 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.1563, allocations: 0.9391 MB / 365.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.1567, allocations: 0.7755 MB / 366.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.983e-05/0.1568, allocations: 27.44 kB / 366.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1568, allocations: 0 / 366.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of Templates: time 0.006724/0.1635, allocations: 4.274 MB / 370.5 MB, free: 0.9531 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.SuperCapDischargeChargeCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeChargeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeChargeCalcHelperMain.o] Error 1