Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.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.MaxwellLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop") translateModel(HelmholtzMedia.Examples.Validation.MaxwellLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 106 kB / 16.41 MB, free: 5.984 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.001474/0.001474, allocations: 184.4 kB / 17.34 MB, free: 5.613 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.315/1.315, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04688/0.04688, allocations: 9.085 MB / 279.7 MB, free: 2.957 MB / 222.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.001499/0.001499, allocations: 72.62 kB / 388.1 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08561, allocations: 48.18 MB / 436.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.02673/0.1124, allocations: 17.52 MB / 453.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.1157, allocations: 2.426 MB / 456.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.1158, allocations: 0 / 456.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.1169, allocations: 391.3 kB / 456.6 MB, free: 3.203 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.00777/0.1247, allocations: 3.1 MB / 459.7 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.664e-05/0.1248, allocations: 7.984 kB / 459.7 MB, free: 88 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.1251, allocations: 194.9 kB / 459.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.391e-05/0.1252, allocations: 9.562 kB / 459.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.1254, allocations: 95.52 kB / 460 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.1255, allocations: 59.7 kB / 460.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.1256, allocations: 4 kB / 460.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01042/0.136, allocations: 6.301 MB / 466.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.72e-05/0.1361, allocations: 11.92 kB / 466.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.1362, allocations: 67.55 kB / 466.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006537/0.1428, allocations: 2.799 MB / 469.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1428, allocations: 0 / 469.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1428, allocations: 0 / 469.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1428, allocations: 0 / 469.3 MB, free: 6.535 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001624/0.1444, allocations: 0.6587 MB / 469.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1445, allocations: 12.03 kB / 469.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.1447, allocations: 39.78 kB / 470 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.1449, allocations: 186.7 kB / 470.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1449, allocations: 8 kB / 470.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.1449, allocations: 0 / 470.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.1453, allocations: 158.5 kB / 470.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.1453, allocations: 0 / 470.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1453, allocations: 4 kB / 470.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1453, allocations: 7.984 kB / 470.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.1457, allocations: 192.2 kB / 470.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002966/0.146, allocations: 274.4 kB / 470.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.1463, allocations: 186.7 kB / 471 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.1466, allocations: 169.9 kB / 471.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02095/0.1676, allocations: 10.93 MB / 482.1 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.1676, allocations: 34.56 kB / 482.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.913e-06/0.1676, allocations: 0 / 482.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009006/0.1685, allocations: 456.3 kB / 482.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.1686, allocations: 55.41 kB / 482.6 MB, free: 7.211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1687, allocations: 145.1 kB / 482.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.1688, allocations: 33.7 kB / 482.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.1688, allocations: 84.8 kB / 482.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.677e-05/0.1689, allocations: 106.4 kB / 483 MB, free: 6.832 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/0.169, allocations: 33.61 kB / 483 MB, free: 6.793 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1691, allocations: 330.8 kB / 483.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.1694, allocations: 119.9 kB / 483.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.1696, allocations: 127.9 kB / 483.6 MB, free: 6.219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/0.17, allocations: 295.6 kB / 483.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.17, allocations: 0 / 483.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005348/0.1706, allocations: 331.3 kB / 484.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1706, allocations: 4 kB / 484.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1706, allocations: 0 / 484.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1706, allocations: 0 / 484.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.1708, allocations: 27.91 kB / 484.2 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.1708, allocations: 0 / 484.2 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.1709, allocations: 27.67 kB / 484.2 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.171, allocations: 4 kB / 484.2 MB, free: 5.535 MB / 366.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 (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.222e-05/0.1711, allocations: 121.8 kB / 484.3 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.1711, allocations: 11.81 kB / 484.4 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006504/0.1717, allocations: 356.8 kB / 484.7 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.1718, allocations: 11.92 kB / 484.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.1718, allocations: 4 kB / 484.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1718, allocations: 3.938 kB / 484.7 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.172, allocations: 273.9 kB / 485 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.172, allocations: 4 kB / 485 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.1722, allocations: 15.98 kB / 485 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1722, allocations: 0 / 485 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.1722, allocations: 0 / 485 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1722, allocations: 0 / 485 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1722, allocations: 0 / 485 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000562/0.1728, allocations: 378.5 kB / 485.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.41e-05/0.1729, allocations: 100.8 kB / 485.5 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.1729, allocations: 8 kB / 485.5 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.173, allocations: 7.984 kB / 485.5 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.1731, allocations: 19.86 kB / 485.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.1731, allocations: 8 kB / 485.5 MB, free: 4.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.632e-05/0.1731, allocations: 103.2 kB / 485.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.114e-06/0.1732, allocations: 0 / 485.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001365/0.1745, allocations: 487.8 kB / 486.1 MB, free: 3.551 MB / 366.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 (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002636/0.1772, allocations: 0.7094 MB / 486.8 MB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006034/0.1778, allocations: 299.8 kB / 487.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.1778, allocations: 0 / 487.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1781, allocations: 171.9 kB / 487.3 MB, free: 2.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.1786, allocations: 68.56 kB / 487.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006488/0.1792, allocations: 393.5 kB / 487.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1795, allocations: 0.7162 MB / 488.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.1796, allocations: 19.42 kB / 488.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1796, allocations: 0 / 488.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of Templates: time 0.01982/0.1994, allocations: 12.53 MB / 0.4892 GB, free: 4.586 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.makefile make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.makefile clang++ -std=c++17 -fopenmp=libomp -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 OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopCalcHelperMain.o OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopCalcHelperMain.cpp In file included from OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopCalcHelperMain.cpp:28: ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6285:32: error: use of undeclared identifier 'MM_' f_.R_s_ = division(8.3144598,MM_,!_initial,"MM"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6286:25: error: use of undeclared identifier 'MM_' f_.d_crit_ = division(MM_,2.549219298245614e-4,!_initial,"2.549219298245614e-4"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6345:32: error: use of undeclared identifier 'MM_' f_.R_s_ = division(8.3144598,MM_,!_initial,"MM"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6346:25: error: use of undeclared identifier 'MM_' f_.d_crit_ = division(MM_,2.549219298245614e-4,!_initial,"2.549219298245614e-4"); ^ 4 errors generated. make: *** [: OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopCalcHelperMain.o] Error 1