Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.001547/0.001547, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 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.001634/0.001634, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.322/1.322, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 43.92 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2154, allocations: 53.36 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006803/0.2222, allocations: 5.314 MB / 437.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.2254, allocations: 1.759 MB / 439 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.2256, allocations: 20 kB / 439 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003068/0.2287, allocations: 1.416 MB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007535/0.2294, allocations: 321.6 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.2308, allocations: 0.6457 MB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009001/0.2317, allocations: 0.8014 MB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009864/0.2327, allocations: 0.6829 MB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004222/0.2331, allocations: 358.7 kB / 443.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005412/0.2336, allocations: 466.1 kB / 443.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.779e-05/0.2337, allocations: 76 kB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005163/0.2342, allocations: 263.8 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.2344, allocations: 175.4 kB / 444.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003697/0.2348, allocations: 429.8 kB / 444.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.2361, allocations: 1.205 MB / 445.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2361, allocations: 0 / 445.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2361, allocations: 4 kB / 445.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.2361, allocations: 0 / 445.8 MB, free: 8.914 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00385/0.2399, allocations: 1.394 MB / 447.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.24, allocations: 8.031 kB / 447.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.371e-05/0.24, allocations: 26.19 kB / 447.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.2402, allocations: 156.4 kB / 447.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.2417, allocations: 248.1 kB / 447.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.242, allocations: 213.3 kB / 447.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.242, allocations: 74.38 kB / 447.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.2422, allocations: 92.38 kB / 448 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.2437, allocations: 0.9538 MB / 449 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.2437, allocations: 7.953 kB / 449 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.2438, allocations: 43.98 kB / 449 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.2438, allocations: 24 kB / 449 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.2452, allocations: 0.7892 MB / 449.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005086/0.2503, allocations: 3.072 MB / 452.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.2521, allocations: 0.8859 MB / 453.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005206/0.2526, allocations: 324 kB / 454.1 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.2527, allocations: 40.94 kB / 454.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.2528, allocations: 51.44 kB / 454.2 MB, free: 320 kB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 2.324e-06/0.2528, allocations: 0 / 454.2 MB, free: 320 kB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.002113/0.2549, allocations: 1.003 MB / 455.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.2549, allocations: 86.11 kB / 455.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004385/0.2554, allocations: 368.4 kB / 455.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.2554, allocations: 41.7 kB / 455.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/0.2557, allocations: 388.2 kB / 456.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.2559, allocations: 317.3 kB / 456.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/0.2562, allocations: 178.9 kB / 456.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.2564, allocations: 362.7 kB / 456.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004841/0.2569, allocations: 270.5 kB / 457.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/0.2575, allocations: 475.4 kB / 457.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.2586, allocations: 0.7745 MB / 458.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2586, allocations: 0 / 458.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001705/0.2603, allocations: 0.9888 MB / 459.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.2604, allocations: 12 kB / 459.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.2604, allocations: 11.98 kB / 459.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004051/0.2608, allocations: 115.3 kB / 459.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.2616, allocations: 211.7 kB / 459.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004801/0.2664, allocations: 5.7 MB / 465.4 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.267, allocations: 103.2 kB / 465.5 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.85e-05/0.2671, allocations: 43.98 kB / 465.6 MB, free: 4.207 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003437/0.2674, allocations: 233.5 kB / 465.8 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.2675, allocations: 55.67 kB / 465.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.2691, allocations: 0.8405 MB / 466.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.2691, allocations: 8 kB / 466.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.2691, allocations: 7.938 kB / 466.7 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.2691, allocations: 7.922 kB / 466.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.2721, allocations: 1.779 MB / 468.5 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.2721, allocations: 8.031 kB / 468.5 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.2726, allocations: 135.8 kB / 468.6 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002908/0.2729, allocations: 107.3 kB / 468.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.273, allocations: 27.98 kB / 468.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00404/0.277, allocations: 5.304 MB / 474.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.277, allocations: 4 kB / 474.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.2789, allocations: 1.277 MB / 475.4 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.2791, allocations: 71.47 kB / 475.4 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.505e-05/0.2791, allocations: 19.89 kB / 475.5 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003792/0.2795, allocations: 23.98 kB / 475.5 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.2796, allocations: 64.61 kB / 475.5 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.824e-05/0.2797, allocations: 31.98 kB / 475.6 MB, free: 9.578 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002967/0.28, allocations: 251.2 kB / 475.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.28, allocations: 3.938 kB / 475.8 MB, free: 9.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009413/0.2809, allocations: 263.5 kB / 476.1 MB, free: 9.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002345/0.2833, allocations: 1.882 MB / 478 MB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.285, allocations: 1.141 MB / 479.1 MB, free: 5.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.285, allocations: 0 / 479.1 MB, free: 5.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008934/0.2859, allocations: 0.762 MB / 479.9 MB, free: 5.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.2864, allocations: 69.23 kB / 479.9 MB, free: 5.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008127/0.2946, allocations: 5.69 MB / 485.6 MB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.2951, allocations: 0.9071 MB / 486.5 MB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004039/0.2955, allocations: 105.1 kB / 486.6 MB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/0.2959, allocations: 247.3 kB / 486.9 MB, free: 13.77 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2959, allocations: 4 kB / 486.9 MB, free: 13.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4367/0.7326, allocations: 13.78 MB / 0.4889 GB, free: 164 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.4, allocations: 8 kB / 0.4889 GB, free: 156 kB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.84240260894876]