Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 88.39 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.001305/0.001305, allocations: 202.3 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.555/1.555, allocations: 227.3 MB / 246.6 MB, free: 12.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 45.91 MB / 344.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 7.938 kB / 418.7 MB, free: 20.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1622, allocations: 63.47 MB / 482.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.000629/0.1629, allocations: 207 kB / 482.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1641, allocations: 0.737 MB / 483.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.087e-05/0.1641, allocations: 0 / 483.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.132e-05/0.1641, allocations: 0 / 483.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.1643, allocations: 7.984 kB / 483.1 MB, free: 4.477 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.1646, allocations: 31.91 kB / 483.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.075e-05/0.1646, allocations: 11.92 kB / 483.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.1646, allocations: 3.938 kB / 483.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.844e-05/0.1647, allocations: 0 / 483.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.365e-05/0.1648, allocations: 8 kB / 483.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.1648, allocations: 4 kB / 483.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.1649, allocations: 47.95 kB / 483.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.482e-06/0.1649, allocations: 0 / 483.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.156e-05/0.1649, allocations: 25.7 kB / 483.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.1651, allocations: 39.89 kB / 483.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1651, allocations: 0 / 483.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1651, allocations: 0 / 483.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.1651, allocations: 0 / 483.2 MB, free: 4.301 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003425/0.1654, allocations: 353.1 kB / 483.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1655, allocations: 12.03 kB / 483.6 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.1655, allocations: 4 kB / 483.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.1657, allocations: 163 kB / 483.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1657, allocations: 0 / 483.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.1657, allocations: 0 / 483.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.645e-05/0.1658, allocations: 37.67 kB / 483.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1658, allocations: 0 / 483.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1658, allocations: 0 / 483.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1658, allocations: 0 / 483.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.761e-05/0.1658, allocations: 4 kB / 483.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000149/0.166, allocations: 153.6 kB / 483.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.772e-05/0.166, allocations: 22.5 kB / 484 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.486e-05/0.1661, allocations: 8.953 kB / 484 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-06/0.1661, allocations: 0 / 484 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.1661, allocations: 60.25 kB / 484 MB, free: 3.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.1661, allocations: 0 / 484 MB, free: 3.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.1663, allocations: 67.41 kB / 484.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.1664, allocations: 89.03 kB / 484.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/0.1664, allocations: 89.86 kB / 484.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.1665, allocations: 25.7 kB / 484.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.86e-05/0.1665, allocations: 80.14 kB / 484.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.1665, allocations: 0 / 484.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-06/0.1665, allocations: 0 / 484.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1667, allocations: 318.8 kB / 484.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.1667, allocations: 4.25 kB / 484.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-06/0.1667, allocations: 3.938 kB / 484.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.1667, allocations: 33.66 kB / 484.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1667, allocations: 0 / 484.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.257e-05/0.1668, allocations: 67.3 kB / 484.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.1669, allocations: 29.7 kB / 484.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1669, allocations: 3.938 kB / 484.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1669, allocations: 0 / 484.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.1669, allocations: 0 / 484.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1669, allocations: 8.031 kB / 484.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.1669, allocations: 4 kB / 484.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.1669, allocations: 0 / 484.8 MB, free: 2.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001095/0.1671, allocations: 143.5 kB / 485 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-06/0.1671, allocations: 4 kB / 485 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.414e-06/0.1671, allocations: 3.125 kB / 485 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1671, allocations: 4 kB / 485 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1671, allocations: 0 / 485 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.1671, allocations: 0 / 485 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.1672, allocations: 150 kB / 485.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1672, allocations: 7.953 kB / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1672, allocations: 0 / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1672, allocations: 0 / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.1673, allocations: 0 / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1673, allocations: 0 / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1673, allocations: 0 / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.87e-05/0.1674, allocations: 90.83 kB / 485.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.1674, allocations: 85.09 kB / 485.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.1675, allocations: 4 kB / 485.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.029e-05/0.1675, allocations: 0 / 485.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.004e-05/0.1675, allocations: 3.938 kB / 485.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.1675, allocations: 0 / 485.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.371e-05/0.1675, allocations: 79.28 kB / 485.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1675, allocations: 0 / 485.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.1678, allocations: 19.98 kB / 485.4 MB, free: 1.746 MB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004117/0.1682, allocations: 187.8 kB / 485.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.975e-05/0.1683, allocations: 63.41 kB / 485.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1683, allocations: 0 / 485.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.1683, allocations: 63.39 kB / 485.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1685, allocations: 0 / 485.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.1687, allocations: 100.5 kB / 485.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.1691, allocations: 0.6731 MB / 486.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.1691, allocations: 7.438 kB / 486.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1691, allocations: 3.938 kB / 486.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of Templates: time 0.002396/0.1715, allocations: 0.8191 MB / 487.3 MB, free: 15.77 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_ModelicaTest.Utilities.TestReadFileCalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Utilities.TestReadFileCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Utilities.TestReadFileCalcHelperMain.o] Error 1