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.001091/0.001091, allocations: 108 kB / 15.6 MB, free: 132 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.001203/0.001203, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04601/0.04601, allocations: 9.093 MB / 278.9 MB, free: 12.17 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.001355/0.001355, allocations: 67.91 kB / 338 MB, free: 25.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07462/0.07599, allocations: 48.16 MB / 386.2 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01878/0.09482, allocations: 17.52 MB / 403.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002846/0.0977, allocations: 2.414 MB / 406.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.014e-05/0.0978, allocations: 8 kB / 406.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009744/0.09879, allocations: 391.5 kB / 406.5 MB, free: 4.797 MB / 302.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.007032/0.1059, allocations: 3.096 MB / 409.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.46e-05/0.1059, allocations: 11.92 kB / 409.6 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.1061, allocations: 199 kB / 409.8 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.793e-05/0.1062, allocations: 13.5 kB / 409.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.1064, allocations: 91.58 kB / 409.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.936e-05/0.1065, allocations: 55.72 kB / 410 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.1065, allocations: 4 kB / 410 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009891/0.1164, allocations: 6.242 MB / 416.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.916e-05/0.1165, allocations: 15.86 kB / 416.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.1166, allocations: 63.67 kB / 416.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005559/0.1222, allocations: 2.795 MB / 419.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1222, allocations: 0 / 419.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1223, allocations: 0 / 419.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1223, allocations: 0 / 419.1 MB, free: 8.188 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.001565/0.1238, allocations: 0.6548 MB / 419.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1239, allocations: 8.031 kB / 419.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.1241, allocations: 43.78 kB / 419.8 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.1243, allocations: 193.7 kB / 420 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.1243, allocations: 3.938 kB / 420 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.1243, allocations: 4 kB / 420 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.1246, allocations: 158.5 kB / 420.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1247, allocations: 0 / 420.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1247, allocations: 0 / 420.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.1247, allocations: 11.98 kB / 420.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.1251, allocations: 200.1 kB / 420.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002676/0.1254, allocations: 266.5 kB / 420.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.1257, allocations: 182.8 kB / 420.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.126, allocations: 169.9 kB / 421 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1671/0.2931, allocations: 10.94 MB / 431.9 MB, free: 43.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.2931, allocations: 33.25 kB / 431.9 MB, free: 43.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 3.116e-06/0.2932, allocations: 3.562 kB / 431.9 MB, free: 43.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009824/0.2941, allocations: 456.9 kB / 432.4 MB, free: 42.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.2942, allocations: 56.31 kB / 432.4 MB, free: 42.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.2943, allocations: 132.3 kB / 432.6 MB, free: 42.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.2943, allocations: 32.72 kB / 432.6 MB, free: 42.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.74e-05/0.2943, allocations: 87.78 kB / 432.7 MB, free: 42.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.503e-05/0.2944, allocations: 105.1 kB / 432.8 MB, free: 42.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.2945, allocations: 32.36 kB / 432.8 MB, free: 42.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.213e-05/0.2946, allocations: 328.6 kB / 433.1 MB, free: 42.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.2948, allocations: 117.6 kB / 433.2 MB, free: 42.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.2951, allocations: 124 kB / 433.4 MB, free: 42.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004676/0.2955, allocations: 290.7 kB / 433.7 MB, free: 41.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2955, allocations: 0 / 433.7 MB, free: 41.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000651/0.2962, allocations: 343.2 kB / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.2962, allocations: 11.94 kB / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2963, allocations: 0 / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.2963, allocations: 1.812 kB / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.2964, allocations: 18.41 kB / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.2965, allocations: 1.5 kB / 434 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.2966, allocations: 21.61 kB / 434 MB, free: 41.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.2966, allocations: 2.25 kB / 434 MB, free: 41.77 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 9.298e-05/0.2967, allocations: 125.9 kB / 434.2 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.2968, allocations: 18.22 kB / 434.2 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007314/0.2975, allocations: 363.1 kB / 434.5 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.2976, allocations: 6.953 kB / 434.5 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2976, allocations: 0 / 434.5 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2976, allocations: 2.172 kB / 434.5 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/0.2979, allocations: 269.8 kB / 434.8 MB, free: 41.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2979, allocations: 1.641 kB / 434.8 MB, free: 41.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.298, allocations: 26.23 kB / 434.8 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.298, allocations: 2.531 kB / 434.8 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.298, allocations: 0.9375 kB / 434.8 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.298, allocations: 2.594 kB / 434.8 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.298, allocations: 1.312 kB / 434.8 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.2987, allocations: 368.3 kB / 435.2 MB, free: 41.03 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-05/0.2988, allocations: 101.4 kB / 435.3 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.2988, allocations: 9.344 kB / 435.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.2989, allocations: 11.09 kB / 435.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.299, allocations: 9.656 kB / 435.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.299, allocations: 3.312 kB / 435.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.072e-05/0.2991, allocations: 96.11 kB / 435.4 MB, free: 40.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2991, allocations: 0 / 435.4 MB, free: 40.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001636/0.3007, allocations: 490.3 kB / 435.9 MB, free: 40.81 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.003066/0.3038, allocations: 0.7212 MB / 436.6 MB, free: 40.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006648/0.3045, allocations: 303.4 kB / 436.9 MB, free: 40.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3045, allocations: 0 / 436.9 MB, free: 40.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.3048, allocations: 161.8 kB / 437.1 MB, free: 40.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.3053, allocations: 80.86 kB / 437.2 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006128/0.3059, allocations: 368.7 kB / 437.5 MB, free: 40.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.3061, allocations: 0.715 MB / 438.2 MB, free: 39.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.3062, allocations: 29.44 kB / 438.3 MB, free: 39.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.3063, allocations: 16.88 kB / 438.3 MB, free: 39.5 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3063, allocations: 3.938 kB / 438.3 MB, free: 39.5 MB / 318.1 MB Notification: Performance of Templates: time 0.02433/0.3306, allocations: 20.58 MB / 458.9 MB, free: 23.87 MB / 318.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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)