Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000834/0.000834, allocations: 92.11 kB / 17.63 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008853/0.0008854, allocations: 192.5 kB / 18.54 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.3 MB / 246.6 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2305/0.2305, allocations: 45.91 MB / 344.7 MB, free: 12.25 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 8 kB / 418.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.153, allocations: 63.46 MB / 482.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006278/0.1537, allocations: 213.2 kB / 482.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000513/0.1542, allocations: 195.9 kB / 482.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.773e-05/0.1542, allocations: 0 / 482.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.1543, allocations: 0 / 482.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.1543, allocations: 0 / 482.5 MB, free: 5.012 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1546, allocations: 35.91 kB / 482.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.059e-05/0.1546, allocations: 3.984 kB / 482.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.611e-05/0.1547, allocations: 0 / 482.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.777e-05/0.1547, allocations: 0 / 482.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.346e-05/0.1547, allocations: 3.984 kB / 482.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.493e-06/0.1547, allocations: 4 kB / 482.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.1549, allocations: 55.89 kB / 482.6 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.1549, allocations: 0 / 482.6 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.736e-05/0.1549, allocations: 25.7 kB / 482.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.334e-05/0.155, allocations: 27.91 kB / 482.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.155, allocations: 0 / 482.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.155, allocations: 0 / 482.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.155, allocations: 4 kB / 482.7 MB, free: 4.848 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.0003395/0.1554, allocations: 345.1 kB / 483 MB, free: 4.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.1554, allocations: 11.97 kB / 483 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.1555, allocations: 4 kB / 483 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.1556, allocations: 171 kB / 483.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1556, allocations: 0 / 483.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-06/0.1556, allocations: 0 / 483.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.254e-05/0.1557, allocations: 29.69 kB / 483.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.1557, allocations: 4 kB / 483.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.1558, allocations: 0 / 483.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1558, allocations: 0 / 483.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.963e-05/0.1558, allocations: 3.938 kB / 483.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.156, allocations: 161.6 kB / 483.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.139e-05/0.156, allocations: 18.61 kB / 483.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.197e-05/0.156, allocations: 4.859 kB / 483.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.031e-06/0.156, allocations: 0 / 483.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.883e-05/0.1561, allocations: 60.33 kB / 483.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.1561, allocations: 0 / 483.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002116/0.1563, allocations: 71.45 kB / 483.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.1564, allocations: 81.11 kB / 483.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.503e-05/0.1565, allocations: 89.86 kB / 483.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1565, allocations: 25.7 kB / 483.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.1565, allocations: 80.14 kB / 483.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.1565, allocations: 0 / 483.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.1565, allocations: 0 / 483.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1567, allocations: 314.8 kB / 484.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-06/0.1567, allocations: 0 / 484.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.1567, allocations: 4 kB / 484.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.796e-05/0.1568, allocations: 29.7 kB / 484.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1568, allocations: 7.953 kB / 484.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.799e-05/0.1569, allocations: 63.33 kB / 484.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.036e-05/0.1569, allocations: 33.7 kB / 484.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1569, allocations: 0 / 484.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1569, allocations: 0 / 484.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.157, allocations: 0 / 484.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.157, allocations: 0 / 484.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.716e-05/0.157, allocations: 4.094 kB / 484.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.157, allocations: 0 / 484.2 MB, free: 3.004 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.0001069/0.1571, allocations: 143.5 kB / 484.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-06/0.1571, allocations: 7.891 kB / 484.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.268e-05/0.1571, allocations: 7.125 kB / 484.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1572, allocations: 0 / 484.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1572, allocations: 4 kB / 484.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1572, allocations: 0 / 484.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.1573, allocations: 149.7 kB / 484.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1573, allocations: 0 / 484.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.1573, allocations: 7.953 kB / 484.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1573, allocations: 0 / 484.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.1573, allocations: 4 kB / 484.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1573, allocations: 0 / 484.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1573, allocations: 0 / 484.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.1574, allocations: 90.77 kB / 484.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.794e-05/0.1575, allocations: 81.11 kB / 484.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.1575, allocations: 7.984 kB / 484.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1575, allocations: 0 / 484.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.1576, allocations: 0 / 484.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.1576, allocations: 4 kB / 484.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.1576, allocations: 75.28 kB / 484.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1576, allocations: 0 / 484.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002241/0.1578, allocations: 20 kB / 484.8 MB, free: 2.309 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.0005617/0.1584, allocations: 198 kB / 485 MB, free: 2.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001269/0.1586, allocations: 63.39 kB / 485.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1586, allocations: 0 / 485.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.145e-05/0.1586, allocations: 59.34 kB / 485.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.1588, allocations: 4 kB / 485.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002562/0.159, allocations: 104.3 kB / 485.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1594, allocations: 0.6731 MB / 485.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.975e-05/0.1594, allocations: 11.44 kB / 485.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1594, allocations: 4.125 kB / 485.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Templates: time 0.002711/0.1622, allocations: 0.7492 MB / 486.7 MB, free: 392 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFileCalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.o] Error 1