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.001979/0.001979, allocations: 103.7 kB / 16.52 MB, free: 6.664 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.002209/0.00221, allocations: 199.7 kB / 17.44 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.861/1.861, allocations: 205.1 MB / 223.3 MB, free: 12.51 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.2286/0.2286, allocations: 43.52 MB / 314.1 MB, free: 0.7656 MB / 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.001531/0.001532, allocations: 70.25 kB / 382.7 MB, free: 57.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1694, allocations: 57.78 MB / 440.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002217/0.1717, allocations: 0.5543 MB / 441 MB, free: 7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007581/0.1725, allocations: 200.9 kB / 441.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.587e-05/0.1725, allocations: 4 kB / 441.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.14e-05/0.1725, allocations: 4 kB / 441.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.886e-06/0.1726, allocations: 0 / 441.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.1729, allocations: 39.89 kB / 441.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.075e-05/0.173, allocations: 4 kB / 441.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.977e-05/0.1731, allocations: 4 kB / 441.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.38e-05/0.1731, allocations: 0 / 441.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.515e-05/0.1732, allocations: 0 / 441.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.1732, allocations: 0 / 441.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.1734, allocations: 51.94 kB / 441.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1734, allocations: 0 / 441.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.1734, allocations: 7.938 kB / 441.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.1736, allocations: 31.89 kB / 441.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1736, allocations: 0 / 441.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1736, allocations: 0 / 441.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1736, allocations: 0 / 441.3 MB, free: 6.664 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.0005598/0.1742, allocations: 353.3 kB / 441.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.919e-05/0.1743, allocations: 12.03 kB / 441.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.368e-05/0.1744, allocations: 4.844 kB / 441.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.1745, allocations: 164.3 kB / 441.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.1745, allocations: 384 / 441.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.1745, allocations: 384 / 441.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.1747, allocations: 38.27 kB / 441.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1747, allocations: 4.172 kB / 441.9 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1747, allocations: 3.938 kB / 441.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.1747, allocations: 0 / 441.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.532e-05/0.1748, allocations: 0 / 441.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.1749, allocations: 149.7 kB / 442.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.222e-05/0.175, allocations: 18.52 kB / 442.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.918e-05/0.175, allocations: 8.859 kB / 442.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.1751, allocations: 4.094 kB / 442.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.619e-05/0.1751, allocations: 60.25 kB / 442.2 MB, free: 5.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.713e-06/0.1751, allocations: 0 / 442.2 MB, free: 5.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002613/0.1754, allocations: 67.34 kB / 442.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.1755, allocations: 77.11 kB / 442.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.1756, allocations: 89.86 kB / 442.4 MB, free: 5.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1756, allocations: 29.64 kB / 442.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.44e-05/0.1756, allocations: 88.2 kB / 442.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.1757, allocations: 4.281 kB / 442.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.1757, allocations: 13.7 kB / 442.5 MB, free: 5.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1758, allocations: 310.8 kB / 442.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.354e-05/0.1758, allocations: 4 kB / 442.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.1759, allocations: 4 kB / 442.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.434e-05/0.1759, allocations: 60.27 kB / 442.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1759, allocations: 4.062 kB / 442.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.981e-05/0.176, allocations: 59.39 kB / 442.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.176, allocations: 35.73 kB / 443 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.176, allocations: 0 / 443 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.1761, allocations: 3.938 kB / 443 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.126e-06/0.1761, allocations: 3.938 kB / 443 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.1761, allocations: 0 / 443 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.1761, allocations: 0 / 443 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.1761, allocations: 4 kB / 443 MB, free: 4.746 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 8.715e-05/0.1762, allocations: 151.4 kB / 443.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-06/0.1762, allocations: 0 / 443.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.728e-05/0.1763, allocations: 11.05 kB / 443.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-07/0.1763, allocations: 4 kB / 443.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.1763, allocations: 0 / 443.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1763, allocations: 4 kB / 443.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.899e-05/0.1764, allocations: 141.7 kB / 443.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1764, allocations: 0 / 443.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1764, allocations: 0 / 443.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1764, allocations: 4 kB / 443.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.1764, allocations: 3.938 kB / 443.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1764, allocations: 7.984 kB / 443.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1764, allocations: 0 / 443.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.568e-05/0.1765, allocations: 90.83 kB / 443.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.1766, allocations: 81.09 kB / 443.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.1766, allocations: 7.875 kB / 443.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-06/0.1766, allocations: 0 / 443.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.48e-05/0.1767, allocations: 0 / 443.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.1767, allocations: 8.031 kB / 443.5 MB, free: 4.133 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.1767, allocations: 75.28 kB / 443.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1767, allocations: 3.938 kB / 443.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.177, allocations: 20 kB / 443.6 MB, free: 4.035 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.0005558/0.1775, allocations: 197.5 kB / 443.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001498/0.1777, allocations: 59.41 kB / 443.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1777, allocations: 0 / 443.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.64e-05/0.1778, allocations: 59.39 kB / 443.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.1779, allocations: 4 kB / 443.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002578/0.1782, allocations: 100.6 kB / 444 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.1785, allocations: 0.6731 MB / 444.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.811e-05/0.1785, allocations: 7.438 kB / 444.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1785, allocations: 0 / 444.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of Templates: time 0.002483/0.181, allocations: 0.7494 MB / 445.4 MB, free: 2.137 MB / 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