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.001354/0.001354, allocations: 102.1 kB / 15.98 MB, free: 5.891 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.001494/0.001494, allocations: 193.8 kB / 16.91 MB, free: 5.746 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.587/1.587, allocations: 205.1 MB / 222.8 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04288/0.04288, allocations: 9.082 MB / 279.2 MB, free: 12.34 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.001277/0.001277, allocations: 71.84 kB / 338.2 MB, free: 25.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.09112, allocations: 48.17 MB / 386.3 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.02652/0.1177, allocations: 17.5 MB / 403.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004073/0.1218, allocations: 2.442 MB / 406.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.122, allocations: 0 / 406.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.1234, allocations: 363.9 kB / 406.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009767/0.1332, allocations: 2.85 MB / 409.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.702e-05/0.1333, allocations: 4 kB / 409.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.1335, allocations: 191.1 kB / 409.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.637e-05/0.1336, allocations: 13.55 kB / 409.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.1339, allocations: 99.45 kB / 409.8 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.134, allocations: 59.72 kB / 409.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.134, allocations: 4 kB / 409.9 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01059/0.1446, allocations: 6.316 MB / 416.2 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.278e-05/0.1447, allocations: 19.91 kB / 416.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1449, allocations: 55.69 kB / 416.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003431/0.1483, allocations: 1.485 MB / 417.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1483, allocations: 0 / 417.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1483, allocations: 0 / 417.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1483, allocations: 4 kB / 417.7 MB, free: 10.05 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001939/0.1503, allocations: 0.6588 MB / 418.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1503, allocations: 8.031 kB / 418.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.1505, allocations: 35.78 kB / 418.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.1508, allocations: 190.6 kB / 418.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.1508, allocations: 0 / 418.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.1508, allocations: 4 kB / 418.6 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.1512, allocations: 162.4 kB / 418.8 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.1512, allocations: 4 kB / 418.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1512, allocations: 0 / 418.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.1513, allocations: 11.98 kB / 418.8 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.1517, allocations: 188.2 kB / 419 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003123/0.152, allocations: 266.5 kB / 419.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.1523, allocations: 190.7 kB / 419.4 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.1526, allocations: 161.9 kB / 419.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1991/0.3517, allocations: 10.94 MB / 430.5 MB, free: 44.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.3518, allocations: 35.69 kB / 430.6 MB, free: 44.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 3.636e-06/0.3518, allocations: 6.078 kB / 430.6 MB, free: 44.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009769/0.3528, allocations: 458.2 kB / 431 MB, free: 44.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.3529, allocations: 52.44 kB / 431.1 MB, free: 44.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.353, allocations: 133 kB / 431.2 MB, free: 44.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.353, allocations: 29.95 kB / 431.2 MB, free: 44.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.99e-05/0.3531, allocations: 87.08 kB / 431.3 MB, free: 44.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.882e-05/0.3532, allocations: 109 kB / 431.4 MB, free: 44.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.3532, allocations: 31.52 kB / 431.5 MB, free: 44.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.676e-05/0.3533, allocations: 326.5 kB / 431.8 MB, free: 44.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3535, allocations: 120.5 kB / 431.9 MB, free: 44.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.3538, allocations: 123.8 kB / 432 MB, free: 44.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.3543, allocations: 292.6 kB / 432.3 MB, free: 44.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3543, allocations: 0 / 432.3 MB, free: 44.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000554/0.3548, allocations: 338.2 kB / 432.6 MB, free: 43.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.3549, allocations: 8.484 kB / 432.6 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3549, allocations: 0 / 432.6 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3549, allocations: 1.281 kB / 432.6 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.355, allocations: 17.81 kB / 432.7 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3551, allocations: 3.281 kB / 432.7 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.3552, allocations: 24.59 kB / 432.7 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.3552, allocations: 2.188 kB / 432.7 MB, free: 43.96 MB / 318.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 8.679e-05/0.3553, allocations: 122.8 kB / 432.8 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.3554, allocations: 15.77 kB / 432.8 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006192/0.356, allocations: 363.7 kB / 433.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.356, allocations: 5.047 kB / 433.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.356, allocations: 7.859 kB / 433.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.356, allocations: 1.078 kB / 433.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.3562, allocations: 279.4 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3563, allocations: 2.125 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.3564, allocations: 17.61 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.3564, allocations: 3.406 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3564, allocations: 0.75 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3564, allocations: 0.875 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3564, allocations: 5.188 kB / 433.5 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005698/0.357, allocations: 370.7 kB / 433.9 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.3571, allocations: 106.5 kB / 434 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.3571, allocations: 1.719 kB / 434 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.3572, allocations: 16.58 kB / 434 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.3573, allocations: 9.359 kB / 434 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.3573, allocations: 2.906 kB / 434 MB, free: 43.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.099e-05/0.3573, allocations: 104.7 kB / 434.1 MB, free: 43.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3574, allocations: 0 / 434.1 MB, free: 43.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001607/0.359, allocations: 481.1 kB / 434.6 MB, free: 43 MB / 318.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.003271/0.3622, allocations: 0.7158 MB / 435.3 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006514/0.3629, allocations: 307.8 kB / 435.6 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3629, allocations: 1.156 kB / 435.6 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.3632, allocations: 164 kB / 435.7 MB, free: 42.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.3637, allocations: 74.61 kB / 435.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.3645, allocations: 459.9 kB / 436.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.3646, allocations: 0.7148 MB / 437 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.3647, allocations: 13.91 kB / 437 MB, free: 41.6 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3647, allocations: 3.938 kB / 437 MB, free: 41.59 MB / 318.1 MB Notification: Performance of Templates: time 0.02503/0.3897, allocations: 12.58 MB / 449.6 MB, free: 34.2 MB / 318.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.makefile make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.makefile clang++ -std=c++14 -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:6312:32: error: use of undeclared identifier 'MM_' f_.R_s_ = division(8.3144598,MM_,!_initial,"MM"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6313:25: error: use of undeclared identifier 'MM_' f_.d_crit_ = division(MM_,0.0002549219298245614,!_initial,"0.0002549219298245614"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6372:32: error: use of undeclared identifier 'MM_' f_.R_s_ = division(8.3144598,MM_,!_initial,"MM"); ^ ./OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopFunctions.cpp:6373:25: error: use of undeclared identifier 'MM_' f_.d_crit_ = division(MM_,0.0002549219298245614,!_initial,"0.0002549219298245614"); ^ 4 errors generated. make: *** [: OMCppHelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoopCalcHelperMain.o] Error 1