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: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.MaxwellLoop,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.MaxwellLoop,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006247/0.006247, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.002002/0.002002, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.535/1.535, allocations: 205.1 MB / 222.6 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.04557/0.04557, allocations: 9.1 MB / 279 MB, free: 12.08 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.001433/0.001433, allocations: 67.91 kB / 387 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2545, allocations: 48.16 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01736/0.2719, allocations: 17.51 MB / 452.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002838/0.2748, allocations: 2.425 MB / 455.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.619e-05/0.2749, allocations: 5.031 kB / 455.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009922/0.2759, allocations: 436 kB / 455.5 MB, free: 8.199 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.007959/0.2839, allocations: 3.23 MB / 458.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.877e-05/0.2839, allocations: 9.172 kB / 458.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.2842, allocations: 193 kB / 458.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.882e-05/0.2843, allocations: 15.59 kB / 458.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.2845, allocations: 90.8 kB / 459 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.2846, allocations: 61.98 kB / 459.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.2847, allocations: 3.438 kB / 459.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01215/0.2968, allocations: 6.292 MB / 465.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.775e-05/0.2969, allocations: 22.25 kB / 465.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.2972, allocations: 65.42 kB / 465.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007496/0.3047, allocations: 2.797 MB / 468.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3047, allocations: 4 kB / 468.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3047, allocations: 4 kB / 468.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3047, allocations: 0 / 468.3 MB, free: 15.58 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.001613/0.3064, allocations: 0.6799 MB / 468.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.3064, allocations: 12.03 kB / 469 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.833e-05/0.3065, allocations: 42.55 kB / 469 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.3066, allocations: 27.89 kB / 469 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.3068, allocations: 198.8 kB / 469.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.3068, allocations: 3.984 kB / 469.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.3068, allocations: 7.938 kB / 469.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.3072, allocations: 162.4 kB / 469.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.3072, allocations: 0 / 469.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3072, allocations: 0 / 469.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.3072, allocations: 4 kB / 469.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003884/0.3076, allocations: 196.2 kB / 469.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002569/0.3079, allocations: 270.5 kB / 469.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.3082, allocations: 178.8 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002462/0.3084, allocations: 165.9 kB / 470.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02022/0.3287, allocations: 10.94 MB / 481.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.928e-05/0.3288, allocations: 38.5 kB / 481.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 6.753e-06/0.3288, allocations: 4 kB / 481.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009673/0.3298, allocations: 456.4 kB / 481.6 MB, free: 232 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3299, allocations: 51.41 kB / 481.7 MB, free: 168 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.33, allocations: 133.8 kB / 481.8 MB, free: 24 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.3301, allocations: 29.7 kB / 481.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.3301, allocations: 92.8 kB / 481.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3302, allocations: 111 kB / 482 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.3303, allocations: 33.64 kB / 482.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.3304, allocations: 326.8 kB / 482.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.3306, allocations: 119.9 kB / 482.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.3309, allocations: 123.9 kB / 482.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.3313, allocations: 299.6 kB / 482.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3313, allocations: 0 / 482.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005232/0.3319, allocations: 339.3 kB / 483.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3319, allocations: 4 kB / 483.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3319, allocations: 0 / 483.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3319, allocations: 0 / 483.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.3321, allocations: 15.98 kB / 483.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3321, allocations: 7.938 kB / 483.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.3322, allocations: 27.81 kB / 483.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.3322, allocations: 240 / 483.3 MB, free: 14.49 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 9.113e-05/0.3323, allocations: 121.8 kB / 483.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.3324, allocations: 15.91 kB / 483.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006188/0.333, allocations: 364.8 kB / 483.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.333, allocations: 11.92 kB / 483.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.333, allocations: 3.938 kB / 483.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.333, allocations: 0 / 483.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.3333, allocations: 270 kB / 484.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3333, allocations: 0 / 484.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.3334, allocations: 19.97 kB / 484.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3334, allocations: 7.938 kB / 484.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.3334, allocations: 4 kB / 484.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3334, allocations: 0 / 484.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3334, allocations: 3.938 kB / 484.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/0.334, allocations: 370.6 kB / 484.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.3341, allocations: 100.9 kB / 484.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.3341, allocations: 3.984 kB / 484.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3342, allocations: 11.98 kB / 484.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.3343, allocations: 11.94 kB / 484.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.3343, allocations: 3.984 kB / 484.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.713e-05/0.3343, allocations: 110.6 kB / 484.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3343, allocations: 0 / 484.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001402/0.3357, allocations: 498.5 kB / 485.2 MB, free: 12.49 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.00283/0.3386, allocations: 1.523 MB / 486.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005359/0.3391, allocations: 295.8 kB / 487 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3392, allocations: 0 / 487 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.3394, allocations: 163.9 kB / 487.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.3399, allocations: 76.28 kB / 487.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.3428, allocations: 2.391 MB / 489.6 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.343, allocations: 0.7162 MB / 490.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.857e-05/0.3431, allocations: 27.89 kB / 490.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.195e-05/0.3432, allocations: 43.44 kB / 490.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3432, allocations: 0 / 490.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04694/0.3902, allocations: 22.67 MB / 0.5011 GB, free: 472 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.841/9.231, allocations: 7.281 kB / 0.5011 GB, free: 468 kB / 382.1 MB (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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)