Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001475/0.001475, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.88 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2638, allocations: 50.53 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003899/0.2677, allocations: 2.86 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.2696, allocations: 1.199 MB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2697, allocations: 4 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.2712, allocations: 0.6145 MB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003098/0.2715, allocations: 143 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.2728, allocations: 0.6599 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.2732, allocations: 298.6 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004577/0.2736, allocations: 266.8 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.2739, allocations: 139.5 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.2741, allocations: 167.3 kB / 415.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.2741, allocations: 24 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.2745, allocations: 187.8 kB / 415.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.2745, allocations: 59.77 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.2747, allocations: 151.2 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006055/0.2753, allocations: 0.5011 MB / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2753, allocations: 0 / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2753, allocations: 0 / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2753, allocations: 0 / 416 MB, free: 10.31 MB / 334.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.001703/0.277, allocations: 0.7326 MB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.2771, allocations: 8.031 kB / 416.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.496e-05/0.2772, allocations: 74.72 kB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008054/0.278, allocations: 116.7 kB / 416.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.2784, allocations: 268.5 kB / 417.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.2784, allocations: 25.03 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.2785, allocations: 36.12 kB / 417.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.279, allocations: 333 kB / 417.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.279, allocations: 4 kB / 417.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.279, allocations: 11.98 kB / 417.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.2791, allocations: 8 kB / 417.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.2795, allocations: 242.5 kB / 417.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.2814, allocations: 1.428 MB / 419.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/0.2821, allocations: 0.7016 MB / 419.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2823, allocations: 104.8 kB / 420 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001857/0.2825, allocations: 170.1 kB / 420.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2825, allocations: 42.56 kB / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2825, allocations: 0 / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00118/0.2837, allocations: 494.5 kB / 420.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.2837, allocations: 55.41 kB / 420.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.2839, allocations: 171.3 kB / 421 MB, free: 4.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.2839, allocations: 29.7 kB / 421 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.284, allocations: 188.3 kB / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.2841, allocations: 95.14 kB / 421.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.2842, allocations: 49.98 kB / 421.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2843, allocations: 326.8 kB / 421.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2845, allocations: 68.53 kB / 421.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2846, allocations: 133 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.2849, allocations: 224.9 kB / 422 MB, free: 3.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2849, allocations: 3.938 kB / 422.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000532/0.2855, allocations: 331.6 kB / 422.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2855, allocations: 8 kB / 422.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2855, allocations: 224 / 422.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.2858, allocations: 76.81 kB / 422.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.286, allocations: 43.92 kB / 422.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.2879, allocations: 2.026 MB / 424.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.2881, allocations: 27.77 kB / 424.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.2881, allocations: 16 kB / 424.6 MB, free: 1.035 MB / 334.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.0001523/0.2883, allocations: 157.1 kB / 424.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.2883, allocations: 23.8 kB / 424.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.2889, allocations: 284.1 kB / 425 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.2889, allocations: 3.938 kB / 425 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2889, allocations: 4 kB / 425 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2889, allocations: 3.984 kB / 425 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009096/0.2899, allocations: 0.6856 MB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2899, allocations: 3.984 kB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.29, allocations: 20 kB / 425.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002215/0.2902, allocations: 80.8 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.2902, allocations: 0 / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.292, allocations: 2.03 MB / 427.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.292, allocations: 0 / 427.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006043/0.2926, allocations: 456.4 kB / 428.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.901e-05/0.2928, allocations: 120.9 kB / 428.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.2928, allocations: 0 / 428.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2929, allocations: 8 kB / 428.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.2929, allocations: 19.97 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-06/0.293, allocations: 8.062 kB / 428.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.875e-05/0.2931, allocations: 123.2 kB / 428.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.2931, allocations: 0 / 428.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.2935, allocations: 103.7 kB / 428.7 MB, free: 12.67 MB / 350.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.0009586/0.2945, allocations: 1.003 MB / 429.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005704/0.2951, allocations: 350.5 kB / 430 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.2951, allocations: 8 kB / 430 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.2954, allocations: 246.4 kB / 430.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.2957, allocations: 23.98 kB / 430.3 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.2986, allocations: 2.517 MB / 432.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.2989, allocations: 0.756 MB / 433.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.264e-05/0.299, allocations: 33.88 kB / 433.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.2991, allocations: 67.42 kB / 433.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2991, allocations: 0 / 433.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.327, allocations: 5.119 MB / 438.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.89/10.22, allocations: 7.188 kB / 438.8 MB, free: 2.52 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches