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.008254/0.008254, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001564/0.001564, allocations: 197 kB / 16.68 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.325/1.325, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04538/0.04538, allocations: 9.092 MB / 279 MB, free: 12.07 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.00143/0.00143, allocations: 64.47 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2328, 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.01672/0.2495, allocations: 17.52 MB / 452.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.2522, allocations: 2.422 MB / 455.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.78e-05/0.2523, allocations: 4 kB / 455.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000928/0.2533, allocations: 384.4 kB / 455.4 MB, free: 8.227 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.006801/0.2601, allocations: 3.097 MB / 458.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.086e-05/0.2602, allocations: 13.11 kB / 458.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.2604, allocations: 200.8 kB / 458.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.2604, allocations: 8.781 kB / 458.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.2606, allocations: 94.3 kB / 458.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.175e-05/0.2607, allocations: 53.03 kB / 458.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.2608, allocations: 4.75 kB / 458.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008763/0.2695, allocations: 6.298 MB / 465.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.178e-05/0.2696, allocations: 18.58 kB / 465.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.2697, allocations: 69.45 kB / 465.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004512/0.2742, allocations: 2.788 MB / 468.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2743, allocations: 0 / 468.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2743, allocations: 0 / 468.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2743, allocations: 0 / 468.1 MB, free: 15.76 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.001217/0.2755, allocations: 0.6665 MB / 468.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2755, allocations: 8.031 kB / 468.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.2756, allocations: 46.55 kB / 468.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.2757, allocations: 35.8 kB / 468.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.2759, allocations: 190.7 kB / 469 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.2759, allocations: 8 kB / 469 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.276, allocations: 0 / 469 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.2763, allocations: 158.5 kB / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2763, allocations: 0 / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.2763, allocations: 7.984 kB / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2763, allocations: 0 / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.2768, allocations: 196.2 kB / 469.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002554/0.277, allocations: 282.3 kB / 469.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.2773, allocations: 174.7 kB / 469.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.2776, allocations: 169.9 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01991/0.2975, allocations: 10.93 MB / 480.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.2976, allocations: 38.56 kB / 481 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.375e-06/0.2976, allocations: 0 / 481 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008719/0.2985, allocations: 452.3 kB / 481.4 MB, free: 452 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.2985, allocations: 63.33 kB / 481.5 MB, free: 376 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.2986, allocations: 145.1 kB / 481.6 MB, free: 224 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.2986, allocations: 25.7 kB / 481.6 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.502e-05/0.2987, allocations: 88.78 kB / 481.7 MB, free: 100 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.256e-05/0.2988, allocations: 98.47 kB / 481.8 MB, free: 0 / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.2988, allocations: 37.61 kB / 481.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.025e-05/0.2989, allocations: 322.8 kB / 482.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.2992, allocations: 119.9 kB / 482.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.2994, allocations: 119.9 kB / 482.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.2998, allocations: 303.5 kB / 482.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2999, allocations: 0 / 482.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005195/0.3004, allocations: 339.2 kB / 483 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3004, allocations: 4 kB / 483 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.3004, allocations: 0 / 483 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3004, allocations: 4 kB / 483 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.3006, allocations: 15.98 kB / 483.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3006, allocations: 3.938 kB / 483.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.3007, allocations: 31.67 kB / 483.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3008, allocations: 12.22 kB / 483.1 MB, free: 14.69 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 7.729e-05/0.3008, allocations: 113.8 kB / 483.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.3009, allocations: 11.81 kB / 483.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.3015, allocations: 368.7 kB / 483.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.3015, allocations: 7.984 kB / 483.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3015, allocations: 7.938 kB / 483.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.3015, allocations: 0 / 483.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.3017, allocations: 262 kB / 483.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3017, allocations: 0 / 483.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.3018, allocations: 23.91 kB / 483.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3018, allocations: 0 / 483.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.3019, allocations: 0 / 483.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3019, allocations: 0 / 483.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.3019, allocations: 11.94 kB / 483.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.3024, allocations: 370.5 kB / 484.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.3025, allocations: 104.8 kB / 484.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3025, allocations: 4 kB / 484.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.3027, allocations: 15.97 kB / 484.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.3027, allocations: 3.938 kB / 484.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.3027, allocations: 8 kB / 484.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.763e-05/0.3028, allocations: 103.2 kB / 484.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3028, allocations: 0 / 484.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001222/0.304, allocations: 487.8 kB / 485 MB, free: 12.72 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.002823/0.3068, allocations: 1.52 MB / 486.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005451/0.3074, allocations: 287.9 kB / 486.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3074, allocations: 0 / 486.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.3077, allocations: 167.9 kB / 486.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.3081, allocations: 72.97 kB / 487 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.311, allocations: 2.376 MB / 489.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.3112, allocations: 0.7162 MB / 490.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.3113, allocations: 31.95 kB / 490.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/0.3114, allocations: 31.44 kB / 490.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3114, allocations: 0 / 490.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04898/0.3604, allocations: 22.75 MB / 0.5009 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.643/9.004, allocations: 11.22 kB / 0.5009 GB, free: 0.6367 MB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)