Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 90.66 kB / 17.63 MB, free: 5.863 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.001199/0.001199, allocations: 190.1 kB / 18.52 MB, free: 5.172 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.509/1.509, allocations: 223.2 MB / 242.5 MB, free: 316 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2374/0.2374, allocations: 44.22 MB / 337.9 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004305/0.0004306, allocations: 11.98 kB / 410.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1498, allocations: 61.92 MB / 472.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005944/0.1505, allocations: 209.3 kB / 472.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005136/0.151, allocations: 198.9 kB / 472.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.632e-05/0.151, allocations: 4 kB / 472.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.1511, allocations: 0 / 472.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.071e-06/0.1511, allocations: 4 kB / 472.6 MB, free: 13.34 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002654/0.1513, allocations: 31.91 kB / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.685e-05/0.1514, allocations: 0 / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.069e-05/0.1514, allocations: 0 / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.015e-05/0.1515, allocations: 4 kB / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.1515, allocations: 0 / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.1515, allocations: 0 / 472.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.1517, allocations: 51.94 kB / 472.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.202e-06/0.1517, allocations: 3.938 kB / 472.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.32e-05/0.1517, allocations: 29.69 kB / 472.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.785e-05/0.1518, allocations: 27.97 kB / 472.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1518, allocations: 4 kB / 472.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1518, allocations: 0 / 472.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1518, allocations: 0 / 472.7 MB, free: 13.18 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.000349/0.1522, allocations: 345.1 kB / 473.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1522, allocations: 12.03 kB / 473.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.1523, allocations: 0 / 473.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1524, allocations: 163.1 kB / 473.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1524, allocations: 0 / 473.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.1524, allocations: 3.938 kB / 473.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.362e-05/0.1525, allocations: 37.66 kB / 473.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.1525, allocations: 3.938 kB / 473.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-06/0.1525, allocations: 0 / 473.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1526, allocations: 3.984 kB / 473.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.468e-05/0.1526, allocations: 4 kB / 473.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.1527, allocations: 141.7 kB / 473.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.951e-05/0.1528, allocations: 22.56 kB / 473.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.362e-05/0.1528, allocations: 12.89 kB / 473.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.031e-06/0.1528, allocations: 4 kB / 473.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.1529, allocations: 60.22 kB / 473.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1529, allocations: 3.938 kB / 473.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001758/0.1531, allocations: 63.39 kB / 473.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.1531, allocations: 81.11 kB / 473.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.288e-05/0.1532, allocations: 89.86 kB / 473.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.1532, allocations: 25.7 kB / 473.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.785e-05/0.1533, allocations: 88.27 kB / 473.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.1533, allocations: 0 / 473.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-06/0.1533, allocations: 0 / 473.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1534, allocations: 310.8 kB / 474.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.1535, allocations: 3.938 kB / 474.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.1535, allocations: 4 kB / 474.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.794e-05/0.1535, allocations: 25.7 kB / 474.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1535, allocations: 0 / 474.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.657e-05/0.1536, allocations: 71.45 kB / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.1536, allocations: 32.2 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1537, allocations: 0 / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1537, allocations: 3.953 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.1537, allocations: 0 / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.1537, allocations: 4 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.1537, allocations: 0 / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.1537, allocations: 0 / 474.3 MB, free: 11.34 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.0001002/0.1538, allocations: 136.1 kB / 474.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-06/0.1539, allocations: 8.031 kB / 474.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.449e-05/0.1539, allocations: 7.078 kB / 474.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1539, allocations: 3.953 kB / 474.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1539, allocations: 0 / 474.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1539, allocations: 0 / 474.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.154, allocations: 149.6 kB / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1541, allocations: 0 / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.195e-06/0.1541, allocations: 3.984 kB / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1541, allocations: 0 / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1541, allocations: 4 kB / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1541, allocations: 4 kB / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1541, allocations: 11.89 kB / 474.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.1542, allocations: 90.83 kB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.1543, allocations: 77.11 kB / 474.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1543, allocations: 3.938 kB / 474.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.061e-05/0.1543, allocations: 4 kB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.898e-05/0.1543, allocations: 0 / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.1544, allocations: 3.953 kB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.113e-05/0.1544, allocations: 79.31 kB / 474.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1544, allocations: 0 / 474.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002415/0.1547, allocations: 16 kB / 474.9 MB, free: 10.64 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.0004318/0.1551, allocations: 195.5 kB / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.1552, allocations: 67.33 kB / 475.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1552, allocations: 0 / 475.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.491e-05/0.1553, allocations: 55.47 kB / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.1554, allocations: 5.781 kB / 475.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002021/0.1556, allocations: 104.4 kB / 475.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.1559, allocations: 0.6731 MB / 476 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.178e-06/0.1559, allocations: 7.438 kB / 476 MB, free: 9.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1559, allocations: 0 / 476 MB, free: 9.48 MB / 350.1 MB Notification: Performance of Templates: time 0.002201/0.1581, allocations: 0.7531 MB / 476.8 MB, free: 8.727 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_4.0.0_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 4.0.0+maint.om/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 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.o] Error 1