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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004536/0.2524, allocations: 2.875 MB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.2544, allocations: 1.156 MB / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.2546, allocations: 8 kB / 426.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.2562, allocations: 0.6262 MB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003831/0.2566, allocations: 135 kB / 427.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.258, allocations: 0.681 MB / 428.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004807/0.2585, allocations: 302.6 kB / 428.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004629/0.259, allocations: 240.1 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.2592, allocations: 139.5 kB / 428.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.2594, allocations: 163.4 kB / 428.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.2595, allocations: 24 kB / 429 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003839/0.2599, allocations: 179.9 kB / 429.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.376e-05/0.2599, allocations: 63.77 kB / 429.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.2601, allocations: 147.3 kB / 429.4 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006872/0.2607, allocations: 0.4975 MB / 429.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2607, allocations: 0 / 429.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2608, allocations: 0 / 429.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2608, allocations: 0 / 429.8 MB, free: 7.379 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.001622/0.2624, allocations: 0.6612 MB / 430.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2624, allocations: 12.03 kB / 430.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.532e-05/0.2625, allocations: 66.72 kB / 430.6 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007996/0.2633, allocations: 124.6 kB / 430.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.2637, allocations: 198.3 kB / 430.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.2637, allocations: 29.03 kB / 430.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.2638, allocations: 32.12 kB / 431 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.2643, allocations: 333.1 kB / 431.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.2643, allocations: 7.953 kB / 431.3 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.2644, allocations: 12 kB / 431.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2644, allocations: 8 kB / 431.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004242/0.2648, allocations: 238.5 kB / 431.5 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.2669, allocations: 1.368 MB / 432.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.2674, allocations: 245.9 kB / 433.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.2675, allocations: 88.77 kB / 433.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.077e-05/0.2676, allocations: 15.98 kB / 433.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.2676, allocations: 30.56 kB / 433.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.2676, allocations: 4 kB / 433.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001225/0.2689, allocations: 425.7 kB / 433.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.2689, allocations: 51.41 kB / 433.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.2691, allocations: 177.1 kB / 433.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.2691, allocations: 25.7 kB / 434 MB, free: 3.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.2692, allocations: 180.4 kB / 434.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.2693, allocations: 83.27 kB / 434.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.51e-05/0.2694, allocations: 57.94 kB / 434.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2695, allocations: 326.8 kB / 434.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.2696, allocations: 68.55 kB / 434.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.2698, allocations: 144.8 kB / 434.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.2701, allocations: 212.4 kB / 435 MB, free: 1.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2701, allocations: 0 / 435 MB, free: 1.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000641/0.2708, allocations: 331.8 kB / 435.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2708, allocations: 4 kB / 435.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2708, allocations: 4 kB / 435.3 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000318/0.2711, allocations: 76.75 kB / 435.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.2713, allocations: 39.97 kB / 435.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.2734, allocations: 1.93 MB / 437.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.2736, allocations: 27.81 kB / 437.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.2736, allocations: 15.98 kB / 437.4 MB, free: 15.36 MB / 350.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.0001733/0.2738, allocations: 141.8 kB / 437.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.939e-05/0.2738, allocations: 20.12 kB / 437.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005897/0.2744, allocations: 280.1 kB / 437.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2744, allocations: 0 / 437.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.2744, allocations: 7.938 kB / 437.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2745, allocations: 3.984 kB / 437.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.2755, allocations: 0.6571 MB / 438.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2755, allocations: 7.938 kB / 438.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.2756, allocations: 31.92 kB / 438.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002553/0.2759, allocations: 68.81 kB / 438.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.2759, allocations: 7.984 kB / 438.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.2779, allocations: 1.919 MB / 440.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2779, allocations: 4.031 kB / 440.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006931/0.2786, allocations: 448.5 kB / 441 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.2787, allocations: 31.86 kB / 441 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.2787, allocations: 8 kB / 441 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.2789, allocations: 8.406 kB / 441 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.2789, allocations: 23.95 kB / 441.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.2789, allocations: 4 kB / 441.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.279, allocations: 131.4 kB / 441.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.279, allocations: 0 / 441.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005087/0.2795, allocations: 95.78 kB / 441.3 MB, free: 11.28 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.001118/0.2807, allocations: 1.008 MB / 442.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006787/0.2813, allocations: 334.5 kB / 442.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2813, allocations: 0 / 442.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.2817, allocations: 242.5 kB / 442.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.2821, allocations: 20.42 kB / 442.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003496/0.2856, allocations: 2.513 MB / 445.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.286, allocations: 0.7521 MB / 446.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.53e-05/0.286, allocations: 21.95 kB / 446.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.2862, allocations: 71.41 kB / 446.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.2862, allocations: 0 / 446.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03721/0.3234, allocations: 5.328 MB / 451.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.83, allocations: 7.875 kB / 451.6 MB, free: 0.9219 MB / 350.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.29447190800056]