Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008831/0.0008837, allocations: 89.56 kB / 17.63 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000923/0.0009231, allocations: 202.5 kB / 18.54 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 227.3 MB / 246.6 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.0002528, allocations: 8 kB / 307.3 MB, free: 1.652 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 51.49 MB / 358.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00331/0.1362, allocations: 2.527 MB / 361.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1377, allocations: 0.7171 MB / 362 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.1379, allocations: 11.94 kB / 362 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.1381, allocations: 35.69 kB / 362.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.1384, allocations: 95.23 kB / 362.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.1387, allocations: 67.92 kB / 362.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004101/0.1391, allocations: 386.3 kB / 362.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.1395, allocations: 153.1 kB / 362.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1396, allocations: 115.5 kB / 362.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.1399, allocations: 147.3 kB / 363 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.312e-05/0.14, allocations: 16 kB / 363 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.1401, allocations: 39.92 kB / 363.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.1402, allocations: 83.7 kB / 363.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.725e-05/0.1403, allocations: 85.52 kB / 363.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004722/0.1408, allocations: 379.2 kB / 363.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1408, allocations: 4 kB / 363.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1408, allocations: 0 / 363.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1408, allocations: 0 / 363.6 MB, free: 9.285 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.001566/0.1424, allocations: 0.7679 MB / 364.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.1425, allocations: 12.03 kB / 364.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.1426, allocations: 43.53 kB / 364.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/0.1431, allocations: 337.3 kB / 364.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.1432, allocations: 24.66 kB / 364.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.1432, allocations: 28 kB / 364.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006457/0.1439, allocations: 345.8 kB / 365.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1439, allocations: 0 / 365.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.1439, allocations: 12 kB / 365.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.144, allocations: 8 kB / 365.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.1444, allocations: 242.4 kB / 365.4 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1463, allocations: 1.319 MB / 366.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.1467, allocations: 178.5 kB / 366.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.1469, allocations: 136.7 kB / 367 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.147, allocations: 0 / 367 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.147, allocations: 34.56 kB / 367.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.142e-06/0.147, allocations: 0 / 367.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004787/0.1475, allocations: 227.9 kB / 367.3 MB, free: 5.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.1476, allocations: 59.39 kB / 367.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003685/0.1479, allocations: 311 kB / 367.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.148, allocations: 33.7 kB / 367.7 MB, free: 4.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.1481, allocations: 208 kB / 367.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.1482, allocations: 55.2 kB / 367.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.495e-05/0.1482, allocations: 4 kB / 368 MB, free: 4.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1484, allocations: 338.8 kB / 368.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1485, allocations: 67.95 kB / 368.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.1487, allocations: 140.7 kB / 368.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.1488, allocations: 70.25 kB / 368.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1488, allocations: 3.938 kB / 368.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003929/0.1492, allocations: 245 kB / 368.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1493, allocations: 4 kB / 368.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1493, allocations: 4 kB / 368.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1493, allocations: 4 kB / 368.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.1495, allocations: 43.92 kB / 368.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.1495, allocations: 7.984 kB / 368.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.1499, allocations: 88.03 kB / 368.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.1499, allocations: 8 kB / 369 MB, free: 3.66 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.0001864/0.1501, allocations: 162.4 kB / 369.1 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1502, allocations: 31.67 kB / 369.1 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004136/0.1506, allocations: 199.7 kB / 369.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1506, allocations: 0 / 369.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1506, allocations: 0 / 369.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1506, allocations: 0 / 369.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008116/0.1515, allocations: 0.6342 MB / 370 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1515, allocations: 0 / 370 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.1516, allocations: 27.98 kB / 370 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1516, allocations: 0 / 370 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1517, allocations: 8 kB / 370 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1517, allocations: 0 / 370 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1517, allocations: 0 / 370 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.1522, allocations: 383.9 kB / 370.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.397e-05/0.1523, allocations: 112.8 kB / 370.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.1523, allocations: 0 / 370.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/0.1527, allocations: 79.98 kB / 370.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.1529, allocations: 75.86 kB / 370.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.1529, allocations: 8 kB / 370.7 MB, free: 1.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.1532, allocations: 229.9 kB / 370.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1532, allocations: 0 / 370.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003674/0.1535, allocations: 87.69 kB / 371 MB, free: 1.543 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.0001778/0.1537, allocations: 111.2 kB / 371.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003481/0.1541, allocations: 182.1 kB / 371.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.1541, allocations: 4 kB / 371.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.1543, allocations: 103.8 kB / 371.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.1547, allocations: 61.33 kB / 371.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.1563, allocations: 0.9282 MB / 372.3 MB, free: 132 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2159/0.3722, allocations: 0.7711 MB / 373.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.3724, allocations: 26.91 kB / 373.1 MB, free: 19.58 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3724, allocations: 0 / 373.1 MB, free: 19.58 MB / 302.1 MB Notification: Performance of Templates: time 0.009706/0.3821, allocations: 4.268 MB / 377.4 MB, free: 19.36 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeChargeCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeChargeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeChargeCalcHelperMain.o] Error 1