Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/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(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008653/0.0008714, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 182.9 kB / 16.92 MB, free: 6.672 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.502/1.502, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.2154/0.2154, allocations: 2.791 MB / 294.9 MB, free: 4.324 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003605, allocations: 8 kB / 356.9 MB, free: 3.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1224, allocations: 51.26 MB / 408.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009064/0.1315, allocations: 7.13 MB / 415.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 6.591e-05/0.1316, allocations: 35.86 kB / 415.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.339e-05/0.1317, allocations: 4 kB / 415.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.132, allocations: 63.66 kB / 415.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.879e-05/0.132, allocations: 19.84 kB / 415.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.1322, allocations: 43.73 kB / 415.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.1324, allocations: 43.69 kB / 415.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.1324, allocations: 4 kB / 415.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.493e-05/0.1325, allocations: 11.94 kB / 415.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.784e-05/0.1325, allocations: 15.92 kB / 415.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.1325, allocations: 0 / 415.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.1328, allocations: 47.88 kB / 415.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.636e-05/0.1328, allocations: 3.938 kB / 415.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.29e-05/0.1329, allocations: 49.58 kB / 415.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.133, allocations: 39.88 kB / 415.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.133, allocations: 4 kB / 415.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.133, allocations: 0 / 415.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.133, allocations: 0 / 415.6 MB, free: 9.129 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003973/0.1334, allocations: 339.4 kB / 416 MB, free: 8.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1335, allocations: 8.031 kB / 416 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.629e-05/0.1335, allocations: 8.844 kB / 416 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.1337, allocations: 164.3 kB / 416.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1337, allocations: 384 / 416.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.1337, allocations: 4.375 kB / 416.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.1339, allocations: 61.81 kB / 416.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1339, allocations: 0 / 416.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.1339, allocations: 0 / 416.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1339, allocations: 0 / 416.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.377e-05/0.134, allocations: 27.98 kB / 416.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001878/0.1342, allocations: 165.6 kB / 416.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.497e-05/0.1343, allocations: 58.5 kB / 416.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.77e-05/0.1343, allocations: 44.88 kB / 416.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.1344, allocations: 7.938 kB / 416.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.1344, allocations: 30.56 kB / 416.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.1344, allocations: 0 / 416.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002332/0.1346, allocations: 129.8 kB / 416.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.1347, allocations: 51.41 kB / 416.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.379e-05/0.1347, allocations: 89.86 kB / 416.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1348, allocations: 29.7 kB / 416.8 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.1348, allocations: 88.11 kB / 416.9 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.986e-05/0.1349, allocations: 47.28 kB / 417 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.1349, allocations: 13.72 kB / 417 MB, free: 7.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.135, allocations: 318.8 kB / 417.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.163e-05/0.1351, allocations: 27.98 kB / 417.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.851e-05/0.1351, allocations: 26.89 kB / 417.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.079e-05/0.1352, allocations: 72.83 kB / 417.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1352, allocations: 0 / 417.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001153/0.1353, allocations: 89.53 kB / 417.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1354, allocations: 8.062 kB / 417.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1354, allocations: 4 kB / 417.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1354, allocations: 4 kB / 417.5 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-06/0.1354, allocations: 0 / 417.5 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.1354, allocations: 7.922 kB / 417.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.041e-05/0.1354, allocations: 7.875 kB / 417.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1355, allocations: 0 / 417.5 MB, free: 7.012 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 (state.phase) * 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: 0 * Record equations: 1 * 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.732e-05/0.1356, allocations: 113.8 kB / 417.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.225e-05/0.1356, allocations: 7.844 kB / 417.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.1358, allocations: 116 kB / 417.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1358, allocations: 4 kB / 417.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1358, allocations: 0 / 417.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1358, allocations: 0 / 417.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.1359, allocations: 169.7 kB / 417.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1359, allocations: 0 / 417.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.1359, allocations: 7.969 kB / 417.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1359, allocations: 0 / 417.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.1359, allocations: 0 / 417.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1359, allocations: 0 / 417.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.136, allocations: 0 / 417.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.1361, allocations: 124.9 kB / 418.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.1361, allocations: 85.05 kB / 418.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.1362, allocations: 3.984 kB / 418.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.142e-05/0.1362, allocations: 3.969 kB / 418.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.1362, allocations: 4 kB / 418.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1362, allocations: 0 / 418.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.1362, allocations: 75.28 kB / 418.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1363, allocations: 4 kB / 418.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002029/0.1365, allocations: 12 kB / 418.2 MB, free: 6.199 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 (state.phase) * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0003342/0.1368, allocations: 136.9 kB / 418.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1369, allocations: 67.86 kB / 418.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1369, allocations: 3.938 kB / 418.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.137, allocations: 39.98 kB / 418.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.1374, allocations: 43.97 kB / 418.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000428/0.1378, allocations: 303.8 kB / 418.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1381, allocations: 0.6848 MB / 419.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.1381, allocations: 7.438 kB / 419.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1381, allocations: 0 / 419.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of Templates: time 0.002436/0.1406, allocations: 0.81 MB / 420.3 MB, free: 4.055 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppExternalMedia_ExternalMedia.Test.TestMedium.TestStateCalcHelperMain.o OMCppExternalMedia_ExternalMedia.Test.TestMedium.TestStateCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppExternalMedia_ExternalMedia.Test.TestMedium.TestStateCalcHelperMain.o] Error 1