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.005261/0.005261, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001378/0.001378, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.435/1.435, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05139/0.05139, allocations: 9.1 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.002233/0.002233, allocations: 71.89 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.232, allocations: 48.16 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01936/0.2514, allocations: 17.51 MB / 452.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.2547, allocations: 2.43 MB / 455.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.423e-05/0.2548, allocations: 0 / 455.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.2559, allocations: 388.8 kB / 455.4 MB, free: 8.23 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.008379/0.2643, allocations: 3.101 MB / 458.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.648e-05/0.2644, allocations: 7.984 kB / 458.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.2647, allocations: 189.2 kB / 458.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.567e-05/0.2648, allocations: 13.22 kB / 458.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2651, allocations: 96.28 kB / 458.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.2652, allocations: 57.66 kB / 458.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.2652, allocations: 4.719 kB / 458.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01054/0.2758, allocations: 6.286 MB / 465.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.367e-05/0.2758, allocations: 26.39 kB / 465.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.276, allocations: 65.02 kB / 465.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005498/0.2815, allocations: 2.801 MB / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2815, allocations: 4 kB / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2815, allocations: 0 / 468.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.2815, 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.001322/0.2828, allocations: 0.6799 MB / 468.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2829, allocations: 12.03 kB / 468.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.149e-05/0.2829, allocations: 42.55 kB / 468.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.2831, allocations: 35.88 kB / 468.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.2833, allocations: 195.6 kB / 469 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-06/0.2833, allocations: 0 / 469 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.2833, allocations: 4 kB / 469.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.2837, allocations: 158.5 kB / 469.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2837, allocations: 4 kB / 469.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.2837, allocations: 0 / 469.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.2837, allocations: 7.984 kB / 469.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.2842, allocations: 204 kB / 469.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002908/0.2845, allocations: 266.5 kB / 469.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.2848, allocations: 178.8 kB / 469.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.2851, allocations: 173.9 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02158/0.3067, allocations: 10.94 MB / 481 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.3067, allocations: 34.56 kB / 481 MB, free: 0.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.504e-06/0.3067, allocations: 0 / 481 MB, free: 0.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009652/0.3077, allocations: 460.3 kB / 481.4 MB, free: 428 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.3078, allocations: 51.41 kB / 481.5 MB, free: 364 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3079, allocations: 141 kB / 481.6 MB, free: 216 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3079, allocations: 25.7 kB / 481.7 MB, free: 184 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.84e-05/0.308, allocations: 96.78 kB / 481.8 MB, free: 84 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.3081, allocations: 111.1 kB / 481.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.334e-05/0.3082, allocations: 29.7 kB / 481.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3083, allocations: 326.8 kB / 482.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.3086, allocations: 115.9 kB / 482.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.3088, allocations: 127.9 kB / 482.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.3094, allocations: 295.6 kB / 482.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3094, allocations: 0 / 482.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006902/0.3101, allocations: 339.2 kB / 483.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3101, allocations: 4 kB / 483.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3101, allocations: 0 / 483.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3102, allocations: 0 / 483.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3103, allocations: 19.97 kB / 483.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3103, allocations: 7.75 kB / 483.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.3104, allocations: 23.83 kB / 483.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3105, allocations: 3.938 kB / 483.1 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 9.562e-05/0.3106, allocations: 117.8 kB / 483.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.3106, allocations: 15.91 kB / 483.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000667/0.3113, allocations: 368.8 kB / 483.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.3113, allocations: 7.984 kB / 483.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3113, allocations: 3.938 kB / 483.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3113, allocations: 4 kB / 483.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.3116, allocations: 266 kB / 483.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3116, allocations: 3.938 kB / 483.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.3117, allocations: 23.98 kB / 483.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3117, allocations: 0 / 483.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.3117, allocations: 0 / 483.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3117, allocations: 0 / 483.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3117, allocations: 3.938 kB / 483.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006338/0.3124, allocations: 378.9 kB / 484.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.3125, allocations: 100.9 kB / 484.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.3125, allocations: 4 kB / 484.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3126, allocations: 11.98 kB / 484.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.3127, allocations: 15.92 kB / 484.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.3127, allocations: 8 kB / 484.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.308e-05/0.3128, allocations: 95.27 kB / 484.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3128, allocations: 0 / 484.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001264/0.314, allocations: 498.5 kB / 485 MB, free: 12.69 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.003436/0.3175, allocations: 1.527 MB / 486.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006211/0.3181, allocations: 299.9 kB / 486.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3181, allocations: 0 / 486.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.3184, allocations: 159.9 kB / 487 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.3189, allocations: 80.03 kB / 487.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.3224, allocations: 2.387 MB / 489.4 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3228, allocations: 0.7201 MB / 490.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.972e-05/0.3229, allocations: 23.97 kB / 490.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.3229, allocations: 39.42 kB / 490.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.323, allocations: 0 / 490.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05455/0.3775, allocations: 22.67 MB / 0.5009 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.63, allocations: 0 / 0.5009 GB, free: 0.6602 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)