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.0009455/0.0009457, allocations: 102.3 kB / 15.71 MB, free: 460 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.001439/0.001439, allocations: 179.2 kB / 16.58 MB, free: 6.133 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.554/1.554, allocations: 223.2 MB / 240.6 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.2427/0.2427, allocations: 2.792 MB / 294.5 MB, free: 4.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004797, allocations: 8 kB / 356.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.139, allocations: 51.25 MB / 407.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007663/0.1467, allocations: 6.803 MB / 414.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 4.035e-05/0.1468, allocations: 43.8 kB / 414.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.576e-05/0.1468, allocations: 0 / 414.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.147, allocations: 67.72 kB / 414.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.255e-05/0.1471, allocations: 27.77 kB / 414.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001647/0.1472, allocations: 31.83 kB / 414.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.964e-05/0.1473, allocations: 51.59 kB / 414.5 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.526e-05/0.1474, allocations: 4 kB / 414.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.719e-05/0.1474, allocations: 11.94 kB / 414.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.205e-05/0.1475, allocations: 11.94 kB / 414.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1475, allocations: 0 / 414.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.1477, allocations: 36 kB / 414.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.1477, allocations: 7.875 kB / 414.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.137e-05/0.1478, allocations: 37.7 kB / 414.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001082/0.1479, allocations: 35.94 kB / 414.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1479, allocations: 0 / 414.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.1479, allocations: 0 / 414.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1479, allocations: 0 / 414.7 MB, free: 9.852 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.0003323/0.1483, allocations: 339.2 kB / 415 MB, free: 9.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1483, allocations: 8.031 kB / 415 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.1483, allocations: 11.89 kB / 415 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.1485, allocations: 171 kB / 415.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.1485, allocations: 0 / 415.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1485, allocations: 4 kB / 415.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.1486, allocations: 51.94 kB / 415.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.1486, allocations: 0 / 415.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.1487, allocations: 11.95 kB / 415.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1487, allocations: 0 / 415.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.134e-05/0.1487, allocations: 27.98 kB / 415.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.1489, allocations: 165.6 kB / 415.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.246e-05/0.149, allocations: 58.5 kB / 415.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.038e-05/0.149, allocations: 40.89 kB / 415.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.1491, allocations: 4 kB / 415.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1491, allocations: 34.55 kB / 415.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.1491, allocations: 0 / 415.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002243/0.1494, allocations: 125.5 kB / 415.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.1494, allocations: 55.34 kB / 415.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.1495, allocations: 89.86 kB / 415.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.1495, allocations: 29.73 kB / 415.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.1495, allocations: 84.12 kB / 415.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.489e-05/0.1496, allocations: 51.58 kB / 416 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.1496, allocations: 0 / 416 MB, free: 8.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1497, allocations: 310.8 kB / 416.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.956e-05/0.1498, allocations: 27.98 kB / 416.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.542e-05/0.1498, allocations: 27.98 kB / 416.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.638e-05/0.1498, allocations: 27.09 kB / 416.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1498, allocations: 0 / 416.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001054/0.15, allocations: 101.5 kB / 416.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.15, allocations: 4 kB / 416.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.15, allocations: 0 / 416.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.15, allocations: 3.938 kB / 416.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.15, allocations: 0 / 416.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.15, allocations: 7.891 kB / 416.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.613e-05/0.1501, allocations: 4 kB / 416.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.1501, allocations: 3.938 kB / 416.5 MB, free: 7.797 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.014e-05/0.1502, allocations: 109.8 kB / 416.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1502, allocations: 11.94 kB / 416.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.1504, allocations: 105.6 kB / 416.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.1504, allocations: 7.984 kB / 416.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1504, allocations: 4 kB / 416.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1504, allocations: 3.953 kB / 416.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.1505, allocations: 169.6 kB / 416.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1505, allocations: 0 / 416.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.634e-06/0.1505, allocations: 8.016 kB / 416.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1505, allocations: 0 / 416.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.1506, allocations: 0 / 416.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1506, allocations: 0 / 416.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1506, allocations: 4 kB / 416.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.1507, allocations: 120.9 kB / 417 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.1508, allocations: 85.05 kB / 417.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.1508, allocations: 0 / 417.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.718e-05/0.1508, allocations: 4.031 kB / 417.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.1508, allocations: 0 / 417.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.1508, allocations: 0 / 417.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.982e-05/0.1509, allocations: 75.28 kB / 417.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1509, allocations: 0 / 417.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001882/0.1511, allocations: 20 kB / 417.2 MB, free: 6.984 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 (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.0003389/0.1514, allocations: 139.3 kB / 417.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1515, allocations: 63.97 kB / 417.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1515, allocations: 3.938 kB / 417.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.388e-05/0.1516, allocations: 43.88 kB / 417.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.1519, allocations: 40.03 kB / 417.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.1523, allocations: 299.8 kB / 417.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.1526, allocations: 0.6889 MB / 418.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.838e-06/0.1527, allocations: 7.438 kB / 418.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1527, allocations: 0 / 418.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of Templates: time 0.002208/0.1549, allocations: 0.8055 MB / 419.3 MB, free: 4.844 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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/ExternalMedia 4.0.0/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/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