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.001498/0.001498, allocations: 109.4 kB / 16.36 MB, free: 6.293 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.001603/0.001603, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.308/1.308, 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.04595/0.04595, allocations: 9.097 MB / 279.6 MB, free: 2.961 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.00232/0.00232, allocations: 67.89 kB / 339.5 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2426, allocations: 48.14 MB / 387.6 MB, free: 51.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01592/0.2586, allocations: 17.52 MB / 405.1 MB, free: 38.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.2609, allocations: 2.429 MB / 407.6 MB, free: 36.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.486e-05/0.261, allocations: 1.031 kB / 407.6 MB, free: 36.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008158/0.2618, allocations: 387.8 kB / 407.9 MB, free: 36.5 MB / 318.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.007082/0.2689, allocations: 3.106 MB / 411 MB, free: 34.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.359e-05/0.269, allocations: 9.047 kB / 411.1 MB, free: 34.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.2692, allocations: 193.4 kB / 411.2 MB, free: 34.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.388e-05/0.2692, allocations: 11.66 kB / 411.3 MB, free: 34.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.2694, allocations: 93.55 kB / 411.3 MB, free: 34.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.423e-05/0.2695, allocations: 61.55 kB / 411.4 MB, free: 34.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.2695, allocations: 3.75 kB / 411.4 MB, free: 34.36 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007848/0.2774, allocations: 6.287 MB / 417.7 MB, free: 29.33 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.76e-05/0.2775, allocations: 27.84 kB / 417.7 MB, free: 29.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2776, allocations: 59.62 kB / 417.8 MB, free: 29.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004631/0.2822, allocations: 2.787 MB / 420.6 MB, free: 26.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2822, allocations: 3.938 kB / 420.6 MB, free: 26.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2822, allocations: 0 / 420.6 MB, free: 26.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2823, allocations: 0 / 420.6 MB, free: 26.45 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.001169/0.2834, allocations: 0.671 MB / 421.2 MB, free: 25.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.2835, allocations: 8.031 kB / 421.3 MB, free: 25.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.2836, allocations: 31.8 kB / 421.3 MB, free: 25.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.2837, allocations: 194.7 kB / 421.5 MB, free: 25.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.2837, allocations: 4 kB / 421.5 MB, free: 25.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.2838, allocations: 4 kB / 421.5 MB, free: 25.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.284, allocations: 162.4 kB / 421.6 MB, free: 25.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.284, allocations: 3.938 kB / 421.6 MB, free: 25.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2841, allocations: 0 / 421.6 MB, free: 25.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2841, allocations: 0 / 421.6 MB, free: 25.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.2844, allocations: 196.2 kB / 421.8 MB, free: 25.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.2846, allocations: 274.4 kB / 422.1 MB, free: 24.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.2849, allocations: 178.7 kB / 422.3 MB, free: 24.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.2851, allocations: 165.9 kB / 422.4 MB, free: 24.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01717/0.3023, allocations: 10.95 MB / 433.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.3023, allocations: 34.56 kB / 433.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 2.294e-06/0.3024, allocations: 4 kB / 433.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007203/0.3031, allocations: 456.3 kB / 433.9 MB, free: 11.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.979e-05/0.3031, allocations: 55.34 kB / 433.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.776e-05/0.3032, allocations: 135.2 kB / 434.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.3032, allocations: 33.64 kB / 434.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.232e-05/0.3033, allocations: 84.8 kB / 434.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.3033, allocations: 106.4 kB / 434.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.3034, allocations: 37.61 kB / 434.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.3034, allocations: 326.8 kB / 434.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.3036, allocations: 122.2 kB / 434.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.3038, allocations: 119.9 kB / 434.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.3041, allocations: 299.6 kB / 435.2 MB, free: 9.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3042, allocations: 0 / 435.2 MB, free: 9.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004087/0.3046, allocations: 327.3 kB / 435.5 MB, free: 9.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.3046, allocations: 8.781 kB / 435.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3046, allocations: 0 / 435.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3046, allocations: 0 / 435.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3047, allocations: 23.92 kB / 435.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3048, allocations: 0 / 435.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.3049, allocations: 35.59 kB / 435.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.3049, allocations: 4 kB / 435.6 MB, free: 9.438 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 6.166e-05/0.305, allocations: 117.8 kB / 435.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.305, allocations: 11.81 kB / 435.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004871/0.3055, allocations: 360.8 kB / 436 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3055, allocations: 7.984 kB / 436 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3055, allocations: 3.938 kB / 436 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3055, allocations: 11.88 kB / 436.1 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.3057, allocations: 262 kB / 436.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3057, allocations: 0 / 436.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.925e-05/0.3058, allocations: 19.97 kB / 436.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3058, allocations: 0.9375 kB / 436.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3058, allocations: 4 kB / 436.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3058, allocations: 0 / 436.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3058, allocations: 0 / 436.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004297/0.3062, allocations: 374.5 kB / 436.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.3063, allocations: 100.8 kB / 436.8 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.3063, allocations: 7.984 kB / 436.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.928e-05/0.3064, allocations: 12.55 kB / 436.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.3065, allocations: 11.88 kB / 436.8 MB, free: 8.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-06/0.3065, allocations: 7.922 kB / 436.8 MB, free: 8.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.333e-05/0.3066, allocations: 107.5 kB / 436.9 MB, free: 7.949 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3066, allocations: 0 / 436.9 MB, free: 7.949 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001168/0.3077, allocations: 487.9 kB / 437.4 MB, free: 7.473 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.002241/0.31, allocations: 0.7169 MB / 438.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004621/0.3105, allocations: 292.2 kB / 438.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3105, allocations: 0 / 438.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.3107, allocations: 168.1 kB / 438.6 MB, free: 6.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.3111, allocations: 72.28 kB / 438.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005173/0.3116, allocations: 379.7 kB / 439 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.806e-05/0.3117, allocations: 0.7162 MB / 439.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.55e-05/0.3118, allocations: 19.97 kB / 439.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3119, allocations: 15.44 kB / 439.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3119, allocations: 0 / 439.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of Templates: time 0.0266/0.3385, allocations: 20.55 MB / 460.3 MB, free: 0.5469 MB / 334.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)