Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.001354/0.001354, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001356/0.001356, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.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.002698/0.002698, allocations: 55.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1495, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.007411/0.157, allocations: 2.724 MB / 377.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.1605, allocations: 1.188 MB / 378.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.1609, allocations: 8 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002492/0.1634, allocations: 0.6184 MB / 379.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005528/0.164, allocations: 131 kB / 379.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2271/0.3911, allocations: 0.6665 MB / 380 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.3917, allocations: 292.7 kB / 380.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006292/0.3924, allocations: 274.2 kB / 380.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.3926, allocations: 125 kB / 380.7 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.3929, allocations: 168 kB / 380.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.3929, allocations: 25.12 kB / 380.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005009/0.3934, allocations: 181 kB / 381 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.54e-05/0.3935, allocations: 67.47 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3936, allocations: 143.2 kB / 381.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007754/0.3944, allocations: 0.4933 MB / 381.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.549e-05/0.3945, allocations: 1.25 kB / 381.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.719e-06/0.3945, allocations: 0.5938 kB / 381.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.3945, allocations: 0 / 381.7 MB, free: 9.02 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00171/0.3962, allocations: 0.7306 MB / 382.5 MB, free: 8.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.3963, allocations: 9.625 kB / 382.5 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.499e-05/0.3964, allocations: 71.44 kB / 382.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009117/0.3973, allocations: 119.1 kB / 382.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.3977, allocations: 261.2 kB / 382.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.3977, allocations: 22.31 kB / 382.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.3978, allocations: 37.06 kB / 383 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/0.3983, allocations: 336.4 kB / 383.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.3983, allocations: 2.125 kB / 383.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.3984, allocations: 12.81 kB / 383.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3984, allocations: 11.12 kB / 383.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.3988, allocations: 242.4 kB / 383.6 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.4008, allocations: 1.451 MB / 385 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005415/0.4013, allocations: 0.6944 MB / 385.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.4015, allocations: 106.2 kB / 385.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.4016, allocations: 88.91 kB / 385.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.368e-05/0.4017, allocations: 37.97 kB / 385.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 5.22e-06/0.4017, allocations: 0 / 385.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001167/0.4029, allocations: 497.9 kB / 386.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.4029, allocations: 54.94 kB / 386.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4031, allocations: 181.6 kB / 386.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.4031, allocations: 29.7 kB / 386.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.4032, allocations: 174.2 kB / 386.8 MB, free: 5.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.1e-05/0.4032, allocations: 92.14 kB / 386.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.4033, allocations: 53.08 kB / 387 MB, free: 5.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.4034, allocations: 328.7 kB / 387.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.4035, allocations: 65.38 kB / 387.4 MB, free: 5.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.4036, allocations: 135.8 kB / 387.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.4039, allocations: 213.5 kB / 387.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.404, allocations: 1.031 kB / 387.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005453/0.4045, allocations: 336.7 kB / 388 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4046, allocations: 10.88 kB / 388 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.4046, allocations: 1.062 kB / 388 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/0.4049, allocations: 76.27 kB / 388.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.4051, allocations: 41.77 kB / 388.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001745/0.4068, allocations: 2.034 MB / 390.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.407, allocations: 30.41 kB / 390.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.407, allocations: 16.5 kB / 390.2 MB, free: 3.156 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.4071, allocations: 144 kB / 390.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.4072, allocations: 20.03 kB / 390.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005195/0.4077, allocations: 291.8 kB / 390.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.4077, allocations: 2.656 kB / 390.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4077, allocations: 2.188 kB / 390.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4077, allocations: 1.406 kB / 390.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000913/0.4086, allocations: 0.6808 MB / 391.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4087, allocations: 6.047 kB / 391.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.4088, allocations: 22.39 kB / 391.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002308/0.4091, allocations: 80.5 kB / 391.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4091, allocations: 9.344 kB / 391.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.4106, allocations: 2.03 MB / 393.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4106, allocations: 0 / 393.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006872/0.4113, allocations: 455.2 kB / 394 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.4114, allocations: 110.5 kB / 394.1 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.4114, allocations: 5.828 kB / 394.1 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.4116, allocations: 6.75 kB / 394.1 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.4116, allocations: 22.25 kB / 394.1 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.4116, allocations: 9.5 kB / 394.1 MB, free: 164 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.807e-05/0.4117, allocations: 125.1 kB / 394.2 MB, free: 72 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4117, allocations: 1.406 kB / 394.2 MB, free: 72 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.4122, allocations: 94.52 kB / 394.3 MB, free: 48 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001337/0.4136, allocations: 1.005 MB / 395.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006684/0.4142, allocations: 358.7 kB / 395.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4143, allocations: 0 / 395.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.4146, allocations: 247.8 kB / 395.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.4149, allocations: 17.91 kB / 395.9 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.4188, allocations: 2.517 MB / 398.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000578/0.4194, allocations: 0.7519 MB / 399.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.89e-05/0.4195, allocations: 24.3 kB / 399.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.4196, allocations: 70.92 kB / 399.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4197, allocations: 1.156 kB / 399.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03572/0.4554, allocations: 4.986 MB / 404.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.06, allocations: 8.828 kB / 404.3 MB, free: 11.27 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches