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.004563/0.004563, allocations: 109.8 kB / 15.74 MB, free: 6.449 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.001185/0.001185, allocations: 196 kB / 16.67 MB, free: 6.355 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.211/1.211, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04316/0.04316, allocations: 9.098 MB / 279 MB, free: 12.1 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.001302/0.001302, allocations: 67.89 kB / 387.5 MB, free: 8.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2085, allocations: 48.16 MB / 435.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01644/0.2249, allocations: 17.52 MB / 453.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.2277, allocations: 2.43 MB / 455.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.248e-05/0.2278, allocations: 0 / 455.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008816/0.2287, allocations: 436.3 kB / 456 MB, free: 8.445 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.0065/0.2352, allocations: 3.233 MB / 459.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.953e-05/0.2352, allocations: 9.203 kB / 459.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.2355, allocations: 192.8 kB / 459.4 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.2355, allocations: 12.53 kB / 459.4 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.2357, allocations: 98.23 kB / 459.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.053e-05/0.2358, allocations: 57.64 kB / 459.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.2358, allocations: 4.562 kB / 459.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008241/0.2441, allocations: 6.297 MB / 465.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.336e-05/0.2441, allocations: 19.84 kB / 465.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.772e-05/0.2442, allocations: 63.67 kB / 466 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.2482, allocations: 2.791 MB / 468.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2482, allocations: 0 / 468.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2482, allocations: 4 kB / 468.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2482, allocations: 0 / 468.8 MB, free: 15.54 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.001279/0.2495, allocations: 0.6665 MB / 469.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.2495, allocations: 8.031 kB / 469.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.2497, allocations: 31.78 kB / 469.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2498, allocations: 186.7 kB / 469.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.2498, allocations: 4 kB / 469.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.2498, allocations: 8 kB / 469.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.2502, allocations: 154.5 kB / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2502, allocations: 4 kB / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.2502, allocations: 0 / 469.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.2502, allocations: 7.984 kB / 469.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.2506, allocations: 188.1 kB / 470 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002456/0.2508, allocations: 286.4 kB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.2511, allocations: 178.7 kB / 470.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002545/0.2514, allocations: 161.9 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/0.27, allocations: 10.94 MB / 481.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.27, allocations: 34.5 kB / 481.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.473e-06/0.27, allocations: 0 / 481.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007765/0.2708, allocations: 464.2 kB / 482 MB, free: 276 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.2709, allocations: 55.41 kB / 482.1 MB, free: 208 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.271, allocations: 145.3 kB / 482.2 MB, free: 56 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.271, allocations: 25.7 kB / 482.3 MB, free: 24 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.271, allocations: 84.8 kB / 482.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.737e-05/0.2711, allocations: 106.5 kB / 482.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.2712, allocations: 37.61 kB / 482.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.2713, allocations: 326.8 kB / 482.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.2715, allocations: 119.9 kB / 482.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.2717, allocations: 115.9 kB / 483 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004327/0.2722, allocations: 303.6 kB / 483.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2722, allocations: 0 / 483.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004938/0.2727, allocations: 331.2 kB / 483.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2727, allocations: 4 kB / 483.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2727, allocations: 0 / 483.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.2727, allocations: 8 kB / 483.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2728, allocations: 15.98 kB / 483.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2729, allocations: 3.984 kB / 483.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.273, allocations: 31.61 kB / 483.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.273, allocations: 8 kB / 483.7 MB, free: 14.53 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 8.244e-05/0.2731, allocations: 113.8 kB / 483.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.2731, allocations: 11.81 kB / 483.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005618/0.2737, allocations: 368.8 kB / 484.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.2737, allocations: 3.984 kB / 484.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2737, allocations: 0 / 484.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2737, allocations: 3.938 kB / 484.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001851/0.2739, allocations: 270 kB / 484.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2739, allocations: 0 / 484.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.864e-05/0.274, allocations: 23.98 kB / 484.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.274, allocations: 3.984 kB / 484.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.274, allocations: 3.938 kB / 484.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.274, allocations: 0 / 484.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.274, allocations: 4 kB / 484.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.2746, allocations: 378.4 kB / 484.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.113e-05/0.2746, allocations: 104.8 kB / 485 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.2747, allocations: 0 / 485 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.739e-05/0.2748, allocations: 15.98 kB / 485 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.565e-05/0.2748, allocations: 7.922 kB / 485 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.2748, allocations: 4 kB / 485 MB, free: 13.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.93e-05/0.2749, allocations: 99.27 kB / 485.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2749, allocations: 0 / 485.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009431/0.2758, allocations: 491.8 kB / 485.6 MB, free: 12.55 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.002019/0.2779, allocations: 0.7178 MB / 486.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005143/0.2784, allocations: 287.9 kB / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2784, allocations: 0 / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.2787, allocations: 168.4 kB / 486.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.2791, allocations: 75.94 kB / 486.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005288/0.2796, allocations: 383.8 kB / 487.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.2799, allocations: 0.7123 MB / 487.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.245e-05/0.28, allocations: 31.89 kB / 488 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.28, allocations: 11.44 kB / 488 MB, free: 10.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.28, allocations: 0 / 488 MB, free: 10.13 MB / 366.1 MB Notification: Performance of Templates: time 0.02594/0.306, allocations: 20.56 MB / 0.4966 GB, free: 5.574 MB / 382.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)