Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001146, allocations: 94.86 kB / 17.64 MB, free: 6.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 197.4 kB / 18.54 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.66/1.66, allocations: 227.3 MB / 246.6 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.0002441, allocations: 8 kB / 307.3 MB, free: 1.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1215, allocations: 51.48 MB / 358.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002643/0.1242, allocations: 1.574 MB / 360.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.1262, allocations: 1.149 MB / 361.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.1264, allocations: 0 / 361.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1276, allocations: 482.6 kB / 362 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.1279, allocations: 183.5 kB / 362.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.1284, allocations: 151.5 kB / 362.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.1288, allocations: 179.2 kB / 362.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.1289, allocations: 21.67 kB / 362.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.1292, allocations: 115.6 kB / 362.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.1295, allocations: 179.5 kB / 362.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.1296, allocations: 8 kB / 362.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.1297, allocations: 59.91 kB / 362.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.13, allocations: 271.3 kB / 363.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1301, allocations: 125.3 kB / 363.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006619/0.1308, allocations: 0.6082 MB / 363.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1308, allocations: 0 / 363.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1308, allocations: 0 / 363.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.1308, allocations: 0 / 363.9 MB, free: 9.047 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002602/0.1334, allocations: 1.077 MB / 364.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.1335, allocations: 12.03 kB / 364.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.1338, allocations: 90.86 kB / 365 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.1351, allocations: 0.696 MB / 365.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1351, allocations: 0 / 365.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.1351, allocations: 7.953 kB / 365.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.1354, allocations: 117.6 kB / 365.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1355, allocations: 4 kB / 365.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1355, allocations: 4 kB / 365.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1355, allocations: 0 / 365.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.1359, allocations: 155.8 kB / 366 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.137, allocations: 0.8142 MB / 366.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.1373, allocations: 90.52 kB / 366.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.1374, allocations: 84.83 kB / 367 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.1375, allocations: 0 / 367 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1375, allocations: 38.55 kB / 367 MB, free: 5.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.051e-06/0.1375, allocations: 0 / 367 MB, free: 5.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008184/0.1383, allocations: 340.4 kB / 367.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.449e-05/0.1384, allocations: 51.41 kB / 367.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.1402, allocations: 1.409 MB / 368.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1402, allocations: 25.7 kB / 368.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.1405, allocations: 392.4 kB / 369.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.1406, allocations: 3.906 kB / 369.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/0.1406, allocations: 0 / 369.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1407, allocations: 306 kB / 369.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.1409, allocations: 79.94 kB / 369.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.141, allocations: 90.52 kB / 369.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.1412, allocations: 71.95 kB / 369.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1412, allocations: 11.83 kB / 369.8 MB, free: 2.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005637/0.1418, allocations: 280.4 kB / 370.1 MB, free: 2.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.1418, allocations: 4 kB / 370.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1418, allocations: 0 / 370.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1419, allocations: 4 kB / 370.1 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1421, allocations: 19.98 kB / 370.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1421, allocations: 0 / 370.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.1423, allocations: 11.98 kB / 370.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.1423, allocations: 4.031 kB / 370.1 MB, free: 2.543 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0003495/0.1426, allocations: 337.7 kB / 370.4 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.1428, allocations: 94.89 kB / 370.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006133/0.1434, allocations: 285.5 kB / 370.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1435, allocations: 4.031 kB / 370.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1435, allocations: 0 / 370.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1435, allocations: 0 / 370.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.144, allocations: 0.5143 MB / 371.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.144, allocations: 0 / 371.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.307e-05/0.1441, allocations: 23.94 kB / 371.3 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1441, allocations: 0 / 371.3 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1442, allocations: 3.984 kB / 371.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1442, allocations: 0 / 371.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1442, allocations: 0 / 371.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.1447, allocations: 318.9 kB / 371.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002843/0.145, allocations: 227.9 kB / 371.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.1451, allocations: 3.953 kB / 371.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.1452, allocations: 8 kB / 371.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.1453, allocations: 15.92 kB / 371.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.1453, allocations: 3.938 kB / 371.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.2946/0.4399, allocations: 1.014 MB / 372.9 MB, free: 19.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.44, allocations: 0 / 372.9 MB, free: 19.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001411/0.4414, allocations: 69.33 kB / 373 MB, free: 19.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003969/0.4418, allocations: 103.2 kB / 373.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007274/0.4425, allocations: 134.9 kB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.4426, allocations: 3.25 kB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000292/0.4429, allocations: 60.45 kB / 373.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.4439, allocations: 99.14 kB / 373.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.4477, allocations: 1.527 MB / 374.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.4488, allocations: 0.9945 MB / 375.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.449, allocations: 43.58 kB / 375.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.534e-06/0.4491, allocations: 1.375 kB / 376 MB, free: 18.2 MB / 302.1 MB Notification: Performance of Templates: time 0.02869/0.4777, allocations: 8.939 MB / 384.9 MB, free: 15.9 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.ShowImpedanceCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1