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.002041/0.002041, allocations: 112.6 kB / 16.37 MB, free: 6 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.001867/0.001867, allocations: 196 kB / 17.31 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.736/1.736, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04794/0.04794, allocations: 9.096 MB / 279.6 MB, free: 2.977 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.001652/0.001652, allocations: 75.89 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3587, allocations: 48.14 MB / 387.6 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.02345/0.3822, allocations: 17.51 MB / 405.1 MB, free: 38.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003213/0.3854, allocations: 2.427 MB / 407.6 MB, free: 36.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.052e-05/0.3856, allocations: 2.125 kB / 407.6 MB, free: 36.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.3869, allocations: 389.7 kB / 408 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.0108/0.3977, allocations: 3.101 MB / 411.1 MB, free: 34.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.464e-05/0.3978, allocations: 9.203 kB / 411.1 MB, free: 34.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.3981, allocations: 196.8 kB / 411.3 MB, free: 34.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.573e-05/0.3982, allocations: 11.91 kB / 411.3 MB, free: 34.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.3984, allocations: 98.2 kB / 411.4 MB, free: 34.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.3986, allocations: 64.95 kB / 411.4 MB, free: 34.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.3986, allocations: 4.625 kB / 411.4 MB, free: 34.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/0.41, allocations: 6.285 MB / 417.7 MB, free: 29.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.603e-05/0.4101, allocations: 15.91 kB / 417.7 MB, free: 29.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.4102, allocations: 67.61 kB / 417.8 MB, free: 29.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007103/0.4174, allocations: 2.791 MB / 420.6 MB, free: 26.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.4174, allocations: 7.938 kB / 420.6 MB, free: 26.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4174, allocations: 0 / 420.6 MB, free: 26.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.4174, allocations: 4 kB / 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.001541/0.419, allocations: 0.6593 MB / 421.3 MB, free: 25.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.419, allocations: 12.03 kB / 421.3 MB, free: 25.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.4192, allocations: 31.78 kB / 421.3 MB, free: 25.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.4194, allocations: 187.6 kB / 421.5 MB, free: 25.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.4194, allocations: 8 kB / 421.5 MB, free: 25.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.4194, allocations: 0 / 421.5 MB, free: 25.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.4197, allocations: 162.5 kB / 421.7 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4197, allocations: 3.938 kB / 421.7 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.4198, allocations: 4 kB / 421.7 MB, free: 25.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4198, allocations: 3.984 kB / 421.7 MB, free: 25.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.4201, allocations: 188.2 kB / 421.8 MB, free: 25.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002313/0.4204, allocations: 276.3 kB / 422.1 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.4206, allocations: 178.8 kB / 422.3 MB, free: 24.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.4209, allocations: 165.9 kB / 422.5 MB, free: 24.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0175/0.4384, allocations: 10.95 MB / 433.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.4384, allocations: 34.56 kB / 433.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 4.658e-06/0.4385, allocations: 0 / 433.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008269/0.4393, allocations: 460.2 kB / 433.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.4393, allocations: 59.41 kB / 433.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.4394, allocations: 126.9 kB / 434.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.4395, allocations: 29.7 kB / 434.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.256e-05/0.4395, allocations: 84.8 kB / 434.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.867e-05/0.4396, allocations: 110.4 kB / 434.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.4396, allocations: 41.61 kB / 434.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.384e-05/0.4397, allocations: 322.8 kB / 434.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.4399, allocations: 119.9 kB / 434.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.4401, allocations: 119.9 kB / 434.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.4405, allocations: 303.5 kB / 435.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4405, allocations: 0 / 435.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004077/0.4409, allocations: 327.2 kB / 435.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4409, allocations: 4 kB / 435.5 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.4409, allocations: 0 / 435.5 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.441, allocations: 4 kB / 435.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.4411, allocations: 27.97 kB / 435.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4411, allocations: 0 / 435.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.4412, allocations: 31.61 kB / 435.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.4412, allocations: 4 kB / 435.6 MB, free: 9.453 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.011e-05/0.4413, allocations: 117.8 kB / 435.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.4413, allocations: 11.81 kB / 435.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005102/0.4419, allocations: 364.8 kB / 436 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.4419, allocations: 13.67 kB / 436.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4419, allocations: 0 / 436.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.4419, allocations: 3.938 kB / 436.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.4421, allocations: 262 kB / 436.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4421, allocations: 0 / 436.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.072e-05/0.4422, allocations: 23.98 kB / 436.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4422, allocations: 0 / 436.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.4422, allocations: 4 kB / 436.3 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4422, allocations: 0 / 436.3 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4422, allocations: 0 / 436.3 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.4427, allocations: 386.3 kB / 436.7 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.372e-05/0.4428, allocations: 100.8 kB / 436.8 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.4428, allocations: 6.125 kB / 436.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.076e-05/0.4429, allocations: 7.984 kB / 436.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.443, allocations: 11.92 kB / 436.8 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.443, allocations: 8 kB / 436.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.06e-05/0.443, allocations: 96.39 kB / 436.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.443, allocations: 0 / 436.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001776/0.4448, allocations: 483.9 kB / 437.4 MB, free: 7.5 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.002111/0.4469, allocations: 0.7167 MB / 438.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.4475, allocations: 295.9 kB / 438.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4475, allocations: 0 / 438.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.4477, allocations: 167.9 kB / 438.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.4481, allocations: 67.28 kB / 438.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005933/0.4487, allocations: 387.7 kB / 439 MB, free: 5.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.4489, allocations: 0.7123 MB / 439.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.05e-05/0.449, allocations: 35.89 kB / 439.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.4491, allocations: 11.44 kB / 439.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4491, allocations: 0 / 439.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of Templates: time 0.03238/0.4815, allocations: 20.55 MB / 460.3 MB, free: 0.5703 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)