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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 54.58 kB / 347.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2612, allocations: 49.16 MB / 396.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003961/0.2651, allocations: 2.532 MB / 398.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.267, allocations: 1.112 MB / 400 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.2671, allocations: 15.09 kB / 400 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.2686, allocations: 0.5684 MB / 400.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.269, allocations: 130.8 kB / 400.7 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.2703, allocations: 0.6186 MB / 401.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004376/0.2708, allocations: 290.7 kB / 401.6 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004478/0.2712, allocations: 246.1 kB / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.2714, allocations: 131.5 kB / 402 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.2716, allocations: 143.7 kB / 402.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.2717, allocations: 24.81 kB / 402.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.2721, allocations: 175.5 kB / 402.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.669e-05/0.2721, allocations: 61.52 kB / 402.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.2722, allocations: 118 kB / 402.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006064/0.2728, allocations: 0.4928 MB / 403 MB, free: 4.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2728, allocations: 5.312 kB / 403 MB, free: 4.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2728, allocations: 0 / 403 MB, free: 4.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2728, allocations: 0 / 403 MB, free: 4.914 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.001467/0.2743, allocations: 0.652 MB / 403.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.2744, allocations: 10 kB / 403.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.815e-05/0.2744, allocations: 72.84 kB / 403.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008037/0.2752, allocations: 122.8 kB / 403.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.2756, allocations: 206.7 kB / 404 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.2756, allocations: 22.97 kB / 404.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.217e-05/0.2757, allocations: 36.53 kB / 404.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.2762, allocations: 329.3 kB / 404.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.2762, allocations: 0.7969 kB / 404.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.2762, allocations: 19.56 kB / 404.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.2762, allocations: 8.281 kB / 404.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003858/0.2766, allocations: 238.6 kB / 404.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.2783, allocations: 1.092 MB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.2788, allocations: 226.9 kB / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.2789, allocations: 93.41 kB / 406.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.786e-05/0.2789, allocations: 11.77 kB / 406.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/0.279, allocations: 33.28 kB / 406.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.279, allocations: 4 kB / 406.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001119/0.2801, allocations: 412.8 kB / 406.5 MB, free: 2.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/0.2801, allocations: 54.81 kB / 406.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.2802, allocations: 178.9 kB / 406.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.2803, allocations: 31.08 kB / 406.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.897e-05/0.2803, allocations: 179.2 kB / 407 MB, free: 2.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.2804, allocations: 88.03 kB / 407.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.2804, allocations: 53.7 kB / 407.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.087e-05/0.2805, allocations: 332.3 kB / 407.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.2806, allocations: 67.16 kB / 407.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.2807, allocations: 136 kB / 407.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.281, allocations: 213.6 kB / 407.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.281, allocations: 5.312 kB / 407.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005018/0.2815, allocations: 328.6 kB / 408.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2815, allocations: 5.938 kB / 408.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2815, allocations: 1.922 kB / 408.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003004/0.2818, allocations: 80.73 kB / 408.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.282, allocations: 42 kB / 408.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.2836, allocations: 1.911 MB / 410.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.2838, allocations: 30.84 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.2838, allocations: 11.69 kB / 410.2 MB, free: 15.78 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.0001812/0.284, allocations: 144.9 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/0.284, allocations: 23.61 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000585/0.2846, allocations: 279.5 kB / 410.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2846, allocations: 7.844 kB / 410.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2846, allocations: 1.625 kB / 410.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.2846, allocations: 5.391 kB / 410.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.2857, allocations: 0.6275 MB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2857, allocations: 0 / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.2859, allocations: 31.52 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.2861, allocations: 73.11 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.2861, allocations: 5.156 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.2882, allocations: 1.905 MB / 413.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2882, allocations: 0.6562 kB / 413.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/0.2889, allocations: 450.8 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.784e-05/0.289, allocations: 37.59 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.2891, allocations: 5.797 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.2892, allocations: 2.219 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.2892, allocations: 25 kB / 413.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.2892, allocations: 9.547 kB / 413.9 MB, free: 13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.2894, allocations: 128.8 kB / 414 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2894, allocations: 5.25 kB / 414 MB, free: 12.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.29, allocations: 97.47 kB / 414.1 MB, free: 12.88 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.001097/0.2911, allocations: 0.9981 MB / 415.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006284/0.2917, allocations: 345.2 kB / 415.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2917, allocations: 0 / 415.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.292, allocations: 233.2 kB / 415.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.2923, allocations: 14.14 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.2957, allocations: 2.514 MB / 418.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001641/0.2958, allocations: 144.7 kB / 418.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.2959, allocations: 23.56 kB / 418.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2961, allocations: 75.28 kB / 418.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2961, allocations: 0 / 418.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04735/0.3434, allocations: 5.582 MB / 424 MB, free: 6.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.14, allocations: 5.094 kB / 424 MB, free: 6.27 MB / 334.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.629090704023838]