Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.00131, allocations: 94.59 kB / 16.67 MB, free: 6.105 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.002314/0.002314, allocations: 176.4 kB / 17.57 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2751/0.2751, allocations: 43.59 MB / 315.6 MB, free: 416 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005961/0.0005961, allocations: 27.14 kB / 385.2 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1472, allocations: 58.86 MB / 444.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0007729/0.1481, allocations: 217 kB / 444.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006947/0.1488, allocations: 196.6 kB / 444.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.886e-05/0.1489, allocations: 0 / 444.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.1489, allocations: 8 kB / 444.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.695e-06/0.1489, allocations: 0 / 444.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1493, allocations: 39.89 kB / 444.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.27e-05/0.1493, allocations: 4 kB / 444.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.47e-05/0.1494, allocations: 0 / 444.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.1495, allocations: 4 kB / 444.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.791e-05/0.1495, allocations: 3.984 kB / 444.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-06/0.1495, allocations: 0 / 444.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.1497, allocations: 47.95 kB / 444.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.1497, allocations: 0 / 444.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.658e-05/0.1498, allocations: 33.69 kB / 444.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.15, allocations: 23.92 kB / 444.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.15, allocations: 3.984 kB / 444.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.15, allocations: 0 / 444.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.15, allocations: 0 / 444.7 MB, free: 4.582 MB / 318.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.0004405/0.1505, allocations: 349.3 kB / 445 MB, free: 4.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.1505, allocations: 8.031 kB / 445 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.1506, allocations: 4.844 kB / 445 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.83e-05/0.1507, allocations: 176.2 kB / 445.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.1507, allocations: 384 / 445.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.1507, allocations: 12.31 kB / 445.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.1508, allocations: 26.27 kB / 445.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1509, allocations: 192 / 445.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.1509, allocations: 3.938 kB / 445.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.1509, allocations: 4 kB / 445.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.218e-05/0.1509, allocations: 0 / 445.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.1511, allocations: 153.7 kB / 445.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.68e-05/0.1511, allocations: 18.61 kB / 445.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.105e-05/0.1511, allocations: 12.8 kB / 445.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.1512, allocations: 0 / 445.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/0.1512, allocations: 56.27 kB / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.413e-06/0.1512, allocations: 0 / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000227/0.1515, allocations: 71.39 kB / 445.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.1515, allocations: 81.11 kB / 445.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.911e-05/0.1516, allocations: 89.86 kB / 445.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-06/0.1516, allocations: 29.83 kB / 445.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.583e-05/0.1516, allocations: 84.08 kB / 445.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.1516, allocations: 0 / 445.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.1516, allocations: 9.719 kB / 445.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.466e-05/0.1517, allocations: 310.8 kB / 446.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.291e-05/0.1517, allocations: 7.938 kB / 446.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.1518, allocations: 0 / 446.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.688e-05/0.1518, allocations: 68.25 kB / 446.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1518, allocations: 4.062 kB / 446.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.828e-05/0.1519, allocations: 59.41 kB / 446.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.152, allocations: 33.7 kB / 446.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.152, allocations: 0 / 446.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.152, allocations: 3.938 kB / 446.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.803e-06/0.152, allocations: 0 / 446.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.152, allocations: 0 / 446.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.1521, allocations: 7.969 kB / 446.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.1521, allocations: 4 kB / 446.3 MB, free: 2.652 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.1522, allocations: 143.5 kB / 446.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1522, allocations: 0 / 446.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.963e-05/0.1522, allocations: 15.06 kB / 446.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1522, allocations: 0 / 446.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1523, allocations: 0 / 446.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1523, allocations: 0 / 446.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.1524, allocations: 145.7 kB / 446.6 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1524, allocations: 0 / 446.6 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.1524, allocations: 3.938 kB / 446.6 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.1524, allocations: 4 kB / 446.6 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1524, allocations: 7.938 kB / 446.6 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1524, allocations: 0 / 446.6 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1524, allocations: 0 / 446.6 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.1526, allocations: 90.83 kB / 446.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.1526, allocations: 77.11 kB / 446.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.1526, allocations: 3.938 kB / 446.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.235e-05/0.1526, allocations: 0 / 446.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.1527, allocations: 4 kB / 446.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.1527, allocations: 4.031 kB / 446.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.1527, allocations: 79.22 kB / 446.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1527, allocations: 3.938 kB / 446.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002593/0.153, allocations: 23.98 kB / 446.9 MB, free: 1.949 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005096/0.1535, allocations: 200.8 kB / 447.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.1536, allocations: 59.41 kB / 447.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1536, allocations: 0 / 447.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.266e-05/0.1537, allocations: 51.41 kB / 447.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.1538, allocations: 4 kB / 447.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002261/0.154, allocations: 104.6 kB / 447.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.1542, allocations: 0.6731 MB / 448 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.377e-05/0.1542, allocations: 7.438 kB / 448 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1542, allocations: 0 / 448 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of Templates: time 0.002769/0.157, allocations: 0.7456 MB / 448.7 MB, free: 56 kB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFileCalcHelperMain.o] Error 1