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.007547/0.007547, allocations: 96.31 kB / 15.73 MB, free: 5.996 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.001525/0.001525, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.402/1.402, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04707/0.04707, allocations: 9.092 MB / 279 MB, free: 12.09 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.001547/0.001548, allocations: 68.45 kB / 387.5 MB, free: 8.035 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2792, allocations: 48.16 MB / 435.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01933/0.2986, allocations: 17.52 MB / 453.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.3018, allocations: 2.433 MB / 455.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.869e-05/0.3019, allocations: 3.531 kB / 455.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.3031, allocations: 389.7 kB / 455.9 MB, free: 8.469 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.008429/0.3115, allocations: 3.093 MB / 459 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4e-05/0.3116, allocations: 21.08 kB / 459.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.3118, allocations: 188.9 kB / 459.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.3119, allocations: 8.719 kB / 459.3 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.3121, allocations: 97.53 kB / 459.3 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.3122, allocations: 52.56 kB / 459.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.3123, allocations: 4.938 kB / 459.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01123/0.3235, allocations: 6.298 MB / 465.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.3236, allocations: 19.81 kB / 465.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3237, allocations: 59.67 kB / 465.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006527/0.3303, allocations: 2.798 MB / 468.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3303, allocations: 0 / 468.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3303, allocations: 0 / 468.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.3303, allocations: 0 / 468.6 MB, free: 15.71 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.00164/0.332, allocations: 0.6876 MB / 469.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.332, allocations: 12.03 kB / 469.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.3322, allocations: 35.88 kB / 469.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3324, allocations: 190.8 kB / 469.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.3324, allocations: 3.984 kB / 469.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.3324, allocations: 8 kB / 469.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.3328, allocations: 150.5 kB / 469.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.3328, allocations: 0 / 469.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3328, allocations: 0 / 469.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3328, allocations: 15.98 kB / 469.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004178/0.3332, allocations: 192.1 kB / 469.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002738/0.3335, allocations: 274.5 kB / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.3338, allocations: 182.8 kB / 470.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3341, allocations: 161.9 kB / 470.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02065/0.3548, allocations: 10.93 MB / 481.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.3549, allocations: 38.56 kB / 481.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.555e-06/0.3549, allocations: 0 / 481.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009365/0.3558, allocations: 460.3 kB / 481.9 MB, free: 436 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.3559, allocations: 51.41 kB / 481.9 MB, free: 372 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.356, allocations: 149.1 kB / 482.1 MB, free: 216 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.356, allocations: 25.7 kB / 482.1 MB, free: 184 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.075e-05/0.3561, allocations: 88.8 kB / 482.2 MB, free: 92 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.3562, allocations: 115.2 kB / 482.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.783e-05/0.3563, allocations: 29.7 kB / 482.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3564, allocations: 322.8 kB / 482.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.3567, allocations: 123.9 kB / 482.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.3569, allocations: 119.9 kB / 482.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004655/0.3573, allocations: 299.6 kB / 483.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3574, allocations: 0 / 483.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005453/0.3579, allocations: 335.2 kB / 483.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3579, allocations: 8 kB / 483.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.358, allocations: 0 / 483.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.358, allocations: 3.984 kB / 483.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3581, allocations: 15.98 kB / 483.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.3581, allocations: 0 / 483.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.3583, allocations: 39.52 kB / 483.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.3583, allocations: 4 kB / 483.6 MB, free: 14.68 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 0.0001072/0.3584, allocations: 113.8 kB / 483.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.3584, allocations: 19.89 kB / 483.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006613/0.3591, allocations: 364.8 kB / 484.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.3591, allocations: 8 kB / 484.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.3592, allocations: 7.938 kB / 484.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3592, allocations: 3.984 kB / 484.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.3594, allocations: 266 kB / 484.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3594, allocations: 0 / 484.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3596, allocations: 19.98 kB / 484.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3596, allocations: 7.922 kB / 484.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.3596, allocations: 4 kB / 484.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3596, allocations: 0 / 484.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.3596, allocations: 3.938 kB / 484.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006092/0.3602, allocations: 374.6 kB / 484.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.172e-05/0.3603, allocations: 100.9 kB / 484.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3604, allocations: 0 / 484.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3605, allocations: 15.98 kB / 484.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.3605, allocations: 15.92 kB / 484.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.3606, allocations: 0 / 484.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.465e-05/0.3607, allocations: 103.3 kB / 485 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3607, allocations: 0 / 485 MB, free: 13.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001593/0.3623, allocations: 498.5 kB / 485.5 MB, free: 12.68 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.002794/0.3651, allocations: 0.7282 MB / 486.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006829/0.3658, allocations: 287.9 kB / 486.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3658, allocations: 0 / 486.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002757/0.3661, allocations: 168.4 kB / 486.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.3666, allocations: 77.02 kB / 486.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006596/0.3672, allocations: 375.5 kB / 487.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.3675, allocations: 0.7201 MB / 487.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.3676, allocations: 27.89 kB / 487.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.3677, allocations: 15.44 kB / 487.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3677, allocations: 4 kB / 487.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Templates: time 0.03267/0.4004, allocations: 20.55 MB / 0.4965 GB, free: 5.691 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)