Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008524/0.0008523, allocations: 100.5 kB / 15.71 MB, free: 452 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.00121/0.001209, allocations: 178.1 kB / 16.58 MB, free: 6.879 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.531/1.531, allocations: 205.4 MB / 222.7 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04212/0.04212, allocations: 9.064 MB / 280.1 MB, free: 12.26 MB / 238.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.0004595/0.0004595, allocations: 19.98 kB / 339.8 MB, free: 25.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 49.19 MB / 389 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01855/0.1284, allocations: 16.03 MB / 405 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.1443, allocations: 15.71 MB / 420.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.1445, allocations: 0 / 420.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008502/0.1454, allocations: 219 kB / 420.9 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01786/0.1633, allocations: 4.949 MB / 425.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.1648, allocations: 425.8 kB / 426.3 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.165, allocations: 183 kB / 426.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.7e-05/0.1651, allocations: 5.406 kB / 426.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.1652, allocations: 75.64 kB / 426.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.667e-05/0.1653, allocations: 51.78 kB / 426.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.1653, allocations: 8 kB / 426.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2288/0.3942, allocations: 7.854 MB / 434.5 MB, free: 19.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.701e-05/0.3943, allocations: 15.55 kB / 434.5 MB, free: 19.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.764e-05/0.3943, allocations: 48.55 kB / 434.5 MB, free: 19.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005698/0.4, allocations: 2.337 MB / 436.9 MB, free: 19.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4001, allocations: 0 / 436.9 MB, free: 19.72 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4001, allocations: 0 / 436.9 MB, free: 19.72 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.4001, allocations: 1.406 kB / 436.9 MB, free: 19.72 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002873/0.403, allocations: 0.8723 MB / 437.7 MB, free: 19.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.403, allocations: 10.98 kB / 437.7 MB, free: 19.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.4032, allocations: 29.86 kB / 437.8 MB, free: 19.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.4034, allocations: 189.9 kB / 437.9 MB, free: 18.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.4034, allocations: 6.906 kB / 438 MB, free: 18.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.4034, allocations: 7.625 kB / 438 MB, free: 18.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.4036, allocations: 129.2 kB / 438.1 MB, free: 18.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.4036, allocations: 3.594 kB / 438.1 MB, free: 18.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.4037, allocations: 5.141 kB / 438.1 MB, free: 18.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.4037, allocations: 9.078 kB / 438.1 MB, free: 18.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.4038, allocations: 98.16 kB / 438.2 MB, free: 18.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.4043, allocations: 0.5784 MB / 438.8 MB, free: 18.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.4046, allocations: 129.8 kB / 438.9 MB, free: 18.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.839e-05/0.4047, allocations: 78.5 kB / 439 MB, free: 18.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04707/0.4517, allocations: 32.35 MB / 471.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.4518, allocations: 35.25 kB / 471.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.446e-06/0.4519, allocations: 0 / 471.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006166/0.4525, allocations: 232.8 kB / 471.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.4525, allocations: 83.61 kB / 471.7 MB, free: 4.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.925e-05/0.4526, allocations: 121.5 kB / 471.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.4527, allocations: 31.98 kB / 471.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.4529, allocations: 90.45 kB / 471.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.813e-05/0.4529, allocations: 82.97 kB / 472 MB, free: 20.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.4529, allocations: 0 / 472 MB, free: 20.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.453, allocations: 326 kB / 472.3 MB, free: 19.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.4531, allocations: 40.08 kB / 472.4 MB, free: 19.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.852e-05/0.4532, allocations: 67.33 kB / 472.4 MB, free: 19.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.187e-05/0.4533, allocations: 52.45 kB / 472.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.4533, allocations: 0 / 472.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001958/0.4535, allocations: 170.1 kB / 472.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.4535, allocations: 9.75 kB / 472.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4535, allocations: 0 / 472.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4535, allocations: 0 / 472.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.213e-05/0.4536, allocations: 24.97 kB / 472.7 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.4536, allocations: 0 / 472.7 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.4537, allocations: 12.8 kB / 472.7 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.4537, allocations: 9.359 kB / 472.7 MB, free: 19.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.72e-05/0.4538, allocations: 116.7 kB / 472.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.4539, allocations: 15.08 kB / 472.8 MB, free: 19.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003674/0.4543, allocations: 307.8 kB / 473.1 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002252/0.4545, allocations: 233.6 kB / 473.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4545, allocations: 7.469 kB / 473.4 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4545, allocations: 7.547 kB / 473.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007599/0.4553, allocations: 0.7532 MB / 474.1 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4553, allocations: 3.562 kB / 474.1 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.4555, allocations: 37.7 kB / 474.2 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4555, allocations: 0 / 474.2 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.4555, allocations: 7.5 kB / 474.2 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4555, allocations: 0 / 474.2 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4555, allocations: 3.875 kB / 474.2 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.456, allocations: 0.5321 MB / 474.7 MB, free: 18.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.456, allocations: 96.41 kB / 474.8 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.456, allocations: 6.969 kB / 474.8 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.4562, allocations: 7.312 kB / 474.8 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.4562, allocations: 15.47 kB / 474.8 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.4562, allocations: 8.062 kB / 474.8 MB, free: 18.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.108e-05/0.4563, allocations: 93.39 kB / 474.9 MB, free: 18.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4563, allocations: 4.062 kB / 474.9 MB, free: 18.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00316/0.4594, allocations: 0.9281 MB / 475.9 MB, free: 18.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.003389/0.4628, allocations: 1.429 MB / 477.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003289/0.4632, allocations: 254.4 kB / 477.5 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4632, allocations: 0 / 477.5 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.4633, allocations: 119.2 kB / 477.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007973/0.4641, allocations: 148 kB / 477.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000724/0.4649, allocations: 0.6021 MB / 478.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.4652, allocations: 0.7339 MB / 479.1 MB, free: 16.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.4653, allocations: 25.16 kB / 479.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4653, allocations: 0 / 479.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of Templates: time 0.02799/0.4933, allocations: 18.85 MB / 498 MB, free: 14.47 MB / 366.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.makefile make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHeliumCalcHelperMain.o OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHeliumCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHeliumCalcHelperMain.o] Error 1