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.001196/0.001196, allocations: 96.14 kB / 15.87 MB, free: 16 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.001292/0.001292, allocations: 194.1 kB / 16.79 MB, free: 6.812 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1328/0.1328, allocations: 2.766 MB / 293.4 MB, free: 3.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 59.91 kB / 354.4 MB, free: 5.035 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1037, allocations: 50.23 MB / 404.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00803/0.1118, allocations: 7.55 MB / 412.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.557e-05/0.1119, allocations: 31.88 kB / 412.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.485e-05/0.1119, allocations: 0 / 412.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.1122, allocations: 75.64 kB / 412.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.484e-05/0.1122, allocations: 15.84 kB / 412.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.1124, allocations: 39.75 kB / 412.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.343e-05/0.1124, allocations: 39.69 kB / 412.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.4e-05/0.1125, allocations: 11.97 kB / 412.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.395e-05/0.1125, allocations: 11.94 kB / 412.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.1126, allocations: 15.94 kB / 412.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.1126, allocations: 0 / 412.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.1128, allocations: 43.94 kB / 412.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.1128, allocations: 7.938 kB / 412.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.213e-05/0.1128, allocations: 19.88 kB / 412.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.113, allocations: 39.88 kB / 412.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.113, allocations: 0 / 412.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.113, allocations: 0 / 412.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.456e-06/0.113, allocations: 0 / 412.5 MB, free: 10.82 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.0003249/0.1133, allocations: 339.5 kB / 412.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1133, allocations: 16.02 kB / 412.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.1134, allocations: 12.84 kB / 412.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.826e-05/0.1135, allocations: 164.4 kB / 413 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.1135, allocations: 8.25 kB / 413 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.1135, allocations: 384 / 413 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.1136, allocations: 57.81 kB / 413.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1136, allocations: 0 / 413.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.1136, allocations: 4 kB / 413.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1137, allocations: 0 / 413.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.523e-05/0.1137, allocations: 31.98 kB / 413.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.1138, allocations: 165.6 kB / 413.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.015e-05/0.1139, allocations: 58.5 kB / 413.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.692e-05/0.114, allocations: 36.89 kB / 413.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.114, allocations: 11.92 kB / 413.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.114, allocations: 30.56 kB / 413.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.12e-07/0.114, allocations: 0 / 413.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001895/0.1142, allocations: 136.2 kB / 413.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.1143, allocations: 51.41 kB / 413.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.132e-05/0.1143, allocations: 93.86 kB / 413.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.1143, allocations: 25.7 kB / 413.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.384e-05/0.1143, allocations: 88.06 kB / 413.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.1144, allocations: 39.36 kB / 413.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.1144, allocations: 17.72 kB / 413.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1145, allocations: 322.8 kB / 414.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.778e-05/0.1146, allocations: 28.02 kB / 414.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.199e-05/0.1146, allocations: 27.94 kB / 414.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.586e-05/0.1147, allocations: 71.08 kB / 414.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1147, allocations: 0 / 414.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.252e-05/0.1148, allocations: 93.53 kB / 414.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1148, allocations: 8 kB / 414.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1148, allocations: 0 / 414.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.1148, allocations: 0 / 414.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1148, allocations: 0 / 414.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.1148, allocations: 3.984 kB / 414.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.63e-05/0.1149, allocations: 8 kB / 414.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1149, allocations: 7.938 kB / 414.4 MB, free: 8.684 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 6.53e-05/0.1149, allocations: 105.8 kB / 414.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.115, allocations: 11.84 kB / 414.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.1151, allocations: 109.6 kB / 414.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1151, allocations: 4.031 kB / 414.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1151, allocations: 0 / 414.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1151, allocations: 0 / 414.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.557e-05/0.1152, allocations: 169.7 kB / 414.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1152, allocations: 0 / 414.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.663e-06/0.1152, allocations: 3.938 kB / 414.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1153, allocations: 3.938 kB / 414.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-06/0.1153, allocations: 0 / 414.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1153, allocations: 0 / 414.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1153, allocations: 4 kB / 414.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.1154, allocations: 139.4 kB / 414.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.1154, allocations: 81.05 kB / 415 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-06/0.1154, allocations: 7.922 kB / 415 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.75e-05/0.1155, allocations: 0 / 415 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.1155, allocations: 0 / 415 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.1155, allocations: 4 kB / 415 MB, free: 7.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.194e-05/0.1155, allocations: 75.28 kB / 415.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1155, allocations: 0 / 415.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001836/0.1157, allocations: 16.03 kB / 415.1 MB, free: 7.867 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.0002713/0.116, allocations: 129.1 kB / 415.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.971e-05/0.1161, allocations: 75.92 kB / 415.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1161, allocations: 0 / 415.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.334e-05/0.1161, allocations: 43.92 kB / 415.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.1165, allocations: 35.84 kB / 415.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.1169, allocations: 271 kB / 415.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.1171, allocations: 0.6848 MB / 416.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.667e-06/0.1171, allocations: 19.38 kB / 416.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1171, allocations: 0 / 416.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of Templates: time 0.001959/0.1191, allocations: 0.8012 MB / 417.2 MB, free: 5.754 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