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.001776/0.001776, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001989/0.001989, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.434/1.434, allocations: 205.1 MB / 222.4 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04597/0.04597, allocations: 9.093 MB / 278.9 MB, free: 12.18 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.001389/0.00139, allocations: 76.34 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.08118, allocations: 48.14 MB / 386.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01745/0.09867, allocations: 17.53 MB / 403.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.1013, allocations: 2.418 MB / 406.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.802e-05/0.1014, allocations: 4 kB / 406.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008161/0.1022, allocations: 391.3 kB / 406.6 MB, free: 4.723 MB / 302.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.006088/0.1083, allocations: 3.099 MB / 409.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.913e-05/0.1084, allocations: 7.984 kB / 409.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.1086, allocations: 195 kB / 409.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.347e-05/0.1086, allocations: 13.56 kB / 409.9 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.1088, allocations: 95.52 kB / 410 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.517e-05/0.1089, allocations: 55.72 kB / 410.1 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.1089, allocations: 4 kB / 410.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009451/0.1184, allocations: 6.242 MB / 416.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.627e-05/0.1184, allocations: 15.91 kB / 416.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.1186, allocations: 67.61 kB / 416.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005508/0.1241, allocations: 2.783 MB / 419.2 MB, free: 8.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1241, allocations: 7.922 kB / 419.2 MB, free: 8.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1241, allocations: 4 kB / 419.2 MB, free: 8.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1241, allocations: 0 / 419.2 MB, free: 8.109 MB / 318.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.001509/0.1256, allocations: 0.6627 MB / 419.9 MB, free: 7.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.1257, allocations: 8.031 kB / 419.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.1257, allocations: 42.55 kB / 419.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1259, allocations: 31.8 kB / 419.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.1261, allocations: 201 kB / 420.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1261, allocations: 8 kB / 420.1 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.1261, allocations: 4 kB / 420.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.1264, allocations: 158.5 kB / 420.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1264, allocations: 0 / 420.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.1265, allocations: 0 / 420.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1265, allocations: 4 kB / 420.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.1269, allocations: 192.2 kB / 420.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002483/0.1271, allocations: 270.5 kB / 420.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.1274, allocations: 174.7 kB / 420.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.1277, allocations: 169.9 kB / 421.1 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1492/0.2769, allocations: 10.94 MB / 432 MB, free: 42.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.277, allocations: 35.81 kB / 432.1 MB, free: 42.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 2.094e-06/0.277, allocations: 1.625 kB / 432.1 MB, free: 42.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.000995/0.278, allocations: 455.9 kB / 432.5 MB, free: 42.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.278, allocations: 56.59 kB / 432.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.2782, allocations: 132.7 kB / 432.7 MB, free: 42.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.2782, allocations: 25.7 kB / 432.7 MB, free: 42.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.2782, allocations: 93.39 kB / 432.8 MB, free: 42.1 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.74e-05/0.2783, allocations: 106.3 kB / 432.9 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/0.2784, allocations: 31.5 kB / 433 MB, free: 42.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.2784, allocations: 326.3 kB / 433.3 MB, free: 41.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.2787, allocations: 119.8 kB / 433.4 MB, free: 41.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.2789, allocations: 123.8 kB / 433.5 MB, free: 41.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.2794, allocations: 292.3 kB / 433.8 MB, free: 41.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2794, allocations: 3 kB / 433.8 MB, free: 41.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005299/0.2799, allocations: 337.4 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.28, allocations: 4.625 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.28, allocations: 3.891 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.28, allocations: 1.656 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2801, allocations: 21.89 kB / 434.2 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2802, allocations: 2.875 kB / 434.2 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.2803, allocations: 28.28 kB / 434.2 MB, free: 41.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.2803, allocations: 2.25 kB / 434.2 MB, free: 41.51 MB / 318.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.628e-05/0.2804, allocations: 125.3 kB / 434.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.2804, allocations: 9.719 kB / 434.3 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006089/0.281, allocations: 374.7 kB / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.2811, allocations: 5.109 kB / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2811, allocations: 0.7031 kB / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2811, allocations: 0 / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.2813, allocations: 277.1 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2814, allocations: 3.391 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2815, allocations: 18.78 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.2815, allocations: 0 / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2815, allocations: 2.062 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2815, allocations: 1.578 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2815, allocations: 0 / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005589/0.2821, allocations: 374.6 kB / 435.4 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.2822, allocations: 101.4 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.2822, allocations: 1.062 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.2823, allocations: 12.47 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.2823, allocations: 12.39 kB / 435.5 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.2824, allocations: 1.188 kB / 435.5 MB, free: 40.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.2824, allocations: 103.2 kB / 435.6 MB, free: 40.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2824, allocations: 1.312 kB / 435.6 MB, free: 40.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001345/0.2838, allocations: 482.8 kB / 436.1 MB, free: 40.55 MB / 318.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.003021/0.2868, allocations: 1.525 MB / 437.6 MB, free: 39.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006463/0.2875, allocations: 310.3 kB / 437.9 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.2875, allocations: 0 / 437.9 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.2878, allocations: 165.9 kB / 438 MB, free: 39.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.2883, allocations: 66.83 kB / 438.1 MB, free: 39.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.2912, allocations: 2.347 MB / 440.5 MB, free: 37.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.2913, allocations: 0.7187 MB / 441.2 MB, free: 37.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.2914, allocations: 26.58 kB / 441.2 MB, free: 37.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.137e-05/0.2915, allocations: 40.33 kB / 441.2 MB, free: 37.15 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2915, allocations: 0.5 kB / 441.2 MB, free: 37.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04062/0.3321, allocations: 22.65 MB / 463.9 MB, free: 18.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.732/9.064, allocations: 12 kB / 463.9 MB, free: 18.71 MB / 318.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)