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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 230.4 MB / 254 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 59.91 kB / 373 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1138, allocations: 53.38 MB / 426.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004522/0.1183, allocations: 2.861 MB / 429.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.1204, allocations: 1.226 MB / 430.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1206, allocations: 8 kB / 430.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1951/0.3157, allocations: 0.6093 MB / 431.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005718/0.3163, allocations: 144.2 kB / 431.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.3175, allocations: 0.6529 MB / 431.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.3179, allocations: 301.9 kB / 432.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003659/0.3182, allocations: 209.3 kB / 432.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.3184, allocations: 137.4 kB / 432.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.3186, allocations: 162.6 kB / 432.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.3186, allocations: 25.03 kB / 432.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.319, allocations: 185.3 kB / 432.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.319, allocations: 69.05 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3191, allocations: 147.5 kB / 433.1 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.3197, allocations: 0.4996 MB / 433.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3197, allocations: 0 / 433.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3197, allocations: 0 / 433.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3197, allocations: 0 / 433.6 MB, free: 7.363 MB / 350.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.001504/0.3212, allocations: 0.7368 MB / 434.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3212, allocations: 8.344 kB / 434.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.248e-05/0.3213, allocations: 74.06 kB / 434.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000783/0.3221, allocations: 112.9 kB / 434.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.3224, allocations: 267.3 kB / 434.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.3224, allocations: 26.38 kB / 434.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.3224, allocations: 33.59 kB / 434.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004765/0.3229, allocations: 334.8 kB / 435.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.3229, allocations: 2.047 kB / 435.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.323, allocations: 12.62 kB / 435.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.323, allocations: 7.969 kB / 435.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/0.3233, allocations: 244.6 kB / 435.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.325, allocations: 1.444 MB / 436.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005383/0.3256, allocations: 0.6793 MB / 437.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3257, allocations: 93.97 kB / 437.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001348/0.3258, allocations: 170.6 kB / 437.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.3259, allocations: 35.56 kB / 437.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.3259, allocations: 4.562 kB / 437.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001206/0.3271, allocations: 495.4 kB / 438.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.3271, allocations: 54.55 kB / 438.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.3272, allocations: 173.7 kB / 438.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3272, allocations: 27.11 kB / 438.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.686e-05/0.3273, allocations: 182.9 kB / 438.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.286e-05/0.3274, allocations: 91.92 kB / 438.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.3275, allocations: 53.45 kB / 438.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.3275, allocations: 328 kB / 439.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3276, allocations: 70.8 kB / 439.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.3278, allocations: 136.5 kB / 439.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.3281, allocations: 216.8 kB / 439.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3281, allocations: 1.344 kB / 439.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005617/0.3286, allocations: 330.8 kB / 439.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3286, allocations: 6.922 kB / 439.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3286, allocations: 5.656 kB / 439.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/0.329, allocations: 79.64 kB / 440 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.3291, allocations: 40.64 kB / 440.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.3309, allocations: 2.031 MB / 442.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.331, allocations: 30.22 kB / 442.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.331, allocations: 14.2 kB / 442.1 MB, free: 1.562 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.0001145/0.3311, allocations: 142.2 kB / 442.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.3312, allocations: 24.42 kB / 442.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005452/0.3317, allocations: 280.8 kB / 442.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3317, allocations: 2.969 kB / 442.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3317, allocations: 4.656 kB / 442.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3318, allocations: 3.188 kB / 442.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008969/0.3327, allocations: 0.6909 MB / 443.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3327, allocations: 8.5 kB / 443.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3328, allocations: 22.84 kB / 443.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002264/0.333, allocations: 77.23 kB / 443.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.333, allocations: 5.797 kB / 443.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/0.3349, allocations: 2.021 MB / 445.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3349, allocations: 5.438 kB / 445.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007763/0.3357, allocations: 453.7 kB / 445.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.3358, allocations: 114.5 kB / 446 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.3358, allocations: 3.016 kB / 446 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.3359, allocations: 5.156 kB / 446 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.336, allocations: 23.77 kB / 446 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.336, allocations: 8.5 kB / 446 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.3361, allocations: 126.6 kB / 446.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3361, allocations: 3.938 kB / 446.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005254/0.3366, allocations: 100.9 kB / 446.2 MB, free: 14.43 MB / 366.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.001161/0.3378, allocations: 0.9969 MB / 447.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006343/0.3384, allocations: 347.3 kB / 447.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3384, allocations: 0 / 447.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.3388, allocations: 241.4 kB / 447.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3391, allocations: 20.5 kB / 447.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.3425, allocations: 2.504 MB / 450.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.3429, allocations: 0.7515 MB / 451.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.343, allocations: 27.03 kB / 451.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.3432, allocations: 76.55 kB / 451.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3432, allocations: 0 / 451.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3777, allocations: 5.205 MB / 456.4 MB, free: 9.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.6, allocations: 7.469 kB / 456.4 MB, free: 9.895 MB / 366.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] 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.1.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) [Timeout 660] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.11431545310188]