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.005345/0.005345, allocations: 100.5 kB / 15.73 MB, free: 6.453 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.001251/0.001251, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.463/1.463, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04845/0.04845, allocations: 9.1 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.00164/0.00164, allocations: 63.91 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3099, 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.02009/0.33, allocations: 17.52 MB / 452.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003288/0.3333, allocations: 2.421 MB / 455.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.3335, allocations: 1.031 kB / 455.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.3349, allocations: 398.7 kB / 455.4 MB, free: 8.238 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.00843/0.3433, allocations: 3.094 MB / 458.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.636e-05/0.3434, allocations: 13.27 kB / 458.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.3437, allocations: 196 kB / 458.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.638e-05/0.3437, allocations: 21.16 kB / 458.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.3439, allocations: 89.98 kB / 458.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.344, allocations: 61.48 kB / 458.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.3441, allocations: 4.438 kB / 458.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/0.3543, allocations: 6.286 MB / 465.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.259e-05/0.3544, allocations: 22.69 kB / 465.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.3546, allocations: 70.05 kB / 465.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007318/0.3619, allocations: 2.787 MB / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.362, allocations: 4 kB / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.362, allocations: 0 / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.362, allocations: 0 / 468.1 MB, free: 15.77 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.001798/0.3638, allocations: 0.6626 MB / 468.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.3638, allocations: 8.031 kB / 468.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.743e-05/0.3639, allocations: 42.55 kB / 468.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.3641, allocations: 35.78 kB / 468.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/0.3643, allocations: 190.7 kB / 469 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.3643, allocations: 4 kB / 469 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.3643, allocations: 4 kB / 469 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.3647, allocations: 158.4 kB / 469.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3647, allocations: 0 / 469.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.3647, allocations: 4 kB / 469.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.3647, allocations: 7.984 kB / 469.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003914/0.3651, allocations: 192.2 kB / 469.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002762/0.3654, allocations: 278.3 kB / 469.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.3657, allocations: 178.8 kB / 469.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.366, allocations: 161.9 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02245/0.3884, allocations: 10.94 MB / 480.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.3885, allocations: 38.56 kB / 481 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 3.015e-06/0.3885, allocations: 4 kB / 481 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009308/0.3895, allocations: 452.3 kB / 481.4 MB, free: 460 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.3895, allocations: 51.41 kB / 481.5 MB, free: 396 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.3897, allocations: 141.7 kB / 481.6 MB, free: 244 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3897, allocations: 29.7 kB / 481.6 MB, free: 208 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.3898, allocations: 88.8 kB / 481.7 MB, free: 116 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.969e-05/0.3899, allocations: 102.5 kB / 481.8 MB, free: 12 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.3899, allocations: 33.66 kB / 481.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3901, allocations: 326.8 kB / 482.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.3903, allocations: 115.9 kB / 482.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.3905, allocations: 123.9 kB / 482.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004569/0.391, allocations: 311.5 kB / 482.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.391, allocations: 0 / 482.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005393/0.3916, allocations: 323.3 kB / 483 MB, free: 14.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3916, allocations: 9.094 kB / 483 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3916, allocations: 240 / 483 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.3916, allocations: 0 / 483 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.3918, allocations: 15.98 kB / 483 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3918, allocations: 11.91 kB / 483.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.3919, allocations: 35.67 kB / 483.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.3919, allocations: 3.938 kB / 483.1 MB, free: 14.71 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.0001121/0.3921, allocations: 117.8 kB / 483.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.3921, allocations: 15.81 kB / 483.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006156/0.3927, allocations: 360.8 kB / 483.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.3927, allocations: 11.98 kB / 483.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3928, allocations: 3.938 kB / 483.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3928, allocations: 0 / 483.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.393, allocations: 266 kB / 483.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.393, allocations: 0 / 483.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.3932, allocations: 23.86 kB / 483.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3932, allocations: 0 / 483.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.3932, allocations: 4 kB / 483.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3932, allocations: 0 / 483.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3932, allocations: 3.938 kB / 483.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005804/0.3938, allocations: 378.5 kB / 484.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.811e-05/0.3939, allocations: 100.8 kB / 484.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.3939, allocations: 4 kB / 484.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.394, allocations: 11.98 kB / 484.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.3941, allocations: 11.92 kB / 484.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3941, allocations: 0 / 484.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.708e-05/0.3942, allocations: 110.6 kB / 484.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3942, allocations: 0 / 484.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001697/0.3959, allocations: 487.8 kB / 485 MB, free: 12.73 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.004712/0.4006, allocations: 1.512 MB / 486.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.4014, allocations: 299.8 kB / 486.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.4014, allocations: 0 / 486.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.4018, allocations: 159.9 kB / 486.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000554/0.4023, allocations: 80.27 kB / 487 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/0.4067, allocations: 2.369 MB / 489.4 MB, free: 8.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.407, allocations: 0.724 MB / 490.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.4071, allocations: 19.97 kB / 490.1 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.4072, allocations: 39.42 kB / 490.2 MB, free: 7.406 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4072, allocations: 4 kB / 490.2 MB, free: 7.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05069/0.4579, allocations: 22.74 MB / 0.5009 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.942/9.4, allocations: 3.938 kB / 0.5009 GB, free: 0.6562 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)