Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_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.001466/0.001466, allocations: 113.7 kB / 17.06 MB, free: 5.965 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.002293/0.002293, allocations: 198.8 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2968, allocations: 49.42 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004858/0.3017, allocations: 2.838 MB / 403.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.304, allocations: 1.152 MB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000303/0.3043, allocations: 8 kB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.306, allocations: 0.6262 MB / 404.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004955/0.3065, allocations: 131 kB / 405 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.308, allocations: 0.6855 MB / 405.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005936/0.3086, allocations: 302.6 kB / 406 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005573/0.3091, allocations: 266.8 kB / 406.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.3094, allocations: 123.6 kB / 406.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.3097, allocations: 167.3 kB / 406.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.413e-05/0.3098, allocations: 31.94 kB / 406.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.3102, allocations: 183.8 kB / 406.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.077e-05/0.3103, allocations: 59.77 kB / 406.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.3105, allocations: 151.2 kB / 406.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007589/0.3113, allocations: 497.2 kB / 407.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3113, allocations: 4 kB / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3113, allocations: 0 / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.3113, allocations: 0 / 407.4 MB, free: 1.621 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.001885/0.3132, allocations: 0.7433 MB / 408.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.3133, allocations: 12.03 kB / 408.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.3134, allocations: 66.72 kB / 408.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008419/0.3142, allocations: 124.6 kB / 408.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.3147, allocations: 256 kB / 408.6 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.3147, allocations: 29.03 kB / 408.6 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.456e-05/0.3148, allocations: 36.12 kB / 408.7 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006081/0.3154, allocations: 333 kB / 409 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.3155, allocations: 7.938 kB / 409 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.3155, allocations: 12 kB / 409 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3155, allocations: 8 kB / 409 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004293/0.3159, allocations: 238.5 kB / 409.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.3181, allocations: 1.436 MB / 410.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006949/0.3188, allocations: 0.7018 MB / 411.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.319, allocations: 104.8 kB / 411.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.3191, allocations: 93.08 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3191, allocations: 38.5 kB / 411.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.3191, allocations: 0 / 411.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001264/0.3204, allocations: 487.5 kB / 412.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.3205, allocations: 55.41 kB / 412.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.3207, allocations: 191.9 kB / 412.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3207, allocations: 29.7 kB / 412.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3208, allocations: 176.4 kB / 412.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.3209, allocations: 87.27 kB / 412.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-05/0.321, allocations: 53.94 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3212, allocations: 330.8 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.3213, allocations: 68.53 kB / 413.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3215, allocations: 129 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.3218, allocations: 220.1 kB / 413.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3218, allocations: 0 / 413.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005759/0.3224, allocations: 328.8 kB / 413.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.3224, allocations: 4 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3224, allocations: 7.938 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003185/0.3227, allocations: 72.8 kB / 413.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.3229, allocations: 43.92 kB / 413.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.325, allocations: 2.037 MB / 415.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.3252, allocations: 27.78 kB / 415.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.3252, allocations: 8 kB / 415.9 MB, free: 8.434 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.0001503/0.3254, allocations: 145.8 kB / 416.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.3254, allocations: 19.84 kB / 416.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005362/0.326, allocations: 285.7 kB / 416.4 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.326, allocations: 4 kB / 416.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.326, allocations: 4.266 kB / 416.4 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.326, allocations: 3.938 kB / 416.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009865/0.327, allocations: 0.6932 MB / 417.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.327, allocations: 7.938 kB / 417.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.3271, allocations: 23.98 kB / 417.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002317/0.3274, allocations: 64.81 kB / 417.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.3274, allocations: 8 kB / 417.2 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/0.3294, allocations: 2.022 MB / 419.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3294, allocations: 3.938 kB / 419.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006448/0.3301, allocations: 448.5 kB / 419.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.3302, allocations: 117 kB / 419.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.3302, allocations: 8 kB / 419.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.3303, allocations: 8.125 kB / 419.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.3304, allocations: 15.98 kB / 419.8 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.3304, allocations: 8 kB / 419.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.3305, allocations: 131.7 kB / 419.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3305, allocations: 0 / 419.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004964/0.331, allocations: 99.78 kB / 420 MB, free: 4.082 MB / 334.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.001066/0.3321, allocations: 1.012 MB / 421 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006662/0.3328, allocations: 350.4 kB / 421.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3328, allocations: 4 kB / 421.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.3332, allocations: 242.5 kB / 421.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.3335, allocations: 28.42 kB / 421.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.3369, allocations: 2.519 MB / 424.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.3373, allocations: 0.756 MB / 424.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.3374, allocations: 21.94 kB / 424.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3375, allocations: 79.41 kB / 425 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3375, allocations: 3.938 kB / 425 MB, free: 14.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.3671, allocations: 5.062 MB / 430.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.76/10.13, allocations: 10.98 kB / 430.1 MB, free: 9.98 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches