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.001243/0.001243, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00141/0.00141, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.411/1.411, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2268, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006581/0.2334, allocations: 4.697 MB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002884/0.2363, allocations: 1.646 MB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.2365, allocations: 16 kB / 437.5 MB, free: 276 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003073/0.2396, allocations: 1.32 MB / 438.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007047/0.2403, allocations: 329.6 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2416, allocations: 0.6016 MB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00087/0.2425, allocations: 0.8013 MB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.2435, allocations: 0.6751 MB / 441.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000424/0.2439, allocations: 366.6 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005804/0.2445, allocations: 466.1 kB / 442 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.594e-05/0.2446, allocations: 76 kB / 442.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004792/0.2451, allocations: 259.8 kB / 442.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.2452, allocations: 179.3 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.2456, allocations: 342.4 kB / 442.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.2469, allocations: 1.204 MB / 444 MB, free: 9.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2469, allocations: 0 / 444 MB, free: 9.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2469, allocations: 0 / 444 MB, free: 9.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.2469, allocations: 0 / 444 MB, free: 9.664 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.003981/0.2509, allocations: 1.406 MB / 445.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2509, allocations: 15.97 kB / 445.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.2511, allocations: 152.4 kB / 445.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/0.2527, allocations: 240.2 kB / 445.8 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.253, allocations: 205.4 kB / 446 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/0.253, allocations: 74.38 kB / 446.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.2532, allocations: 96.38 kB / 446.2 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.2548, allocations: 0.9501 MB / 447.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.2549, allocations: 3.953 kB / 447.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.23e-05/0.255, allocations: 44 kB / 447.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.255, allocations: 20 kB / 447.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.2563, allocations: 0.7853 MB / 448 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005163/0.2615, allocations: 2.823 MB / 450.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.2634, allocations: 0.8893 MB / 451.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/0.2639, allocations: 330 kB / 452 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001089/0.264, allocations: 32.97 kB / 452.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.2641, allocations: 43.5 kB / 452.1 MB, free: 1.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 2.635e-06/0.2641, allocations: 4 kB / 452.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.002205/0.2663, allocations: 0.9993 MB / 453.1 MB, free: 344 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.2663, allocations: 94.11 kB / 453.2 MB, free: 228 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004696/0.2668, allocations: 384.2 kB / 453.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.2668, allocations: 41.7 kB / 453.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.2671, allocations: 392.2 kB / 454 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/0.2674, allocations: 305.3 kB / 454.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002738/0.2677, allocations: 178.9 kB / 454.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.2678, allocations: 366.7 kB / 454.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004713/0.2683, allocations: 262.5 kB / 455.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006455/0.269, allocations: 479.4 kB / 455.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.2701, allocations: 0.7823 MB / 456.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2701, allocations: 0 / 456.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001749/0.2719, allocations: 0.9849 MB / 457.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.2719, allocations: 11.98 kB / 457.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.2719, allocations: 8 kB / 457.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000399/0.2723, allocations: 119.4 kB / 457.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008502/0.2732, allocations: 207.7 kB / 457.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0048/0.278, allocations: 5.681 MB / 463.3 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005955/0.2786, allocations: 107.2 kB / 463.5 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.2786, allocations: 39.98 kB / 463.5 MB, free: 5.254 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.0003338/0.279, allocations: 231.6 kB / 463.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.2791, allocations: 55.67 kB / 463.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.2806, allocations: 0.8443 MB / 464.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.2806, allocations: 12 kB / 464.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.2807, allocations: 7.938 kB / 464.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.2807, allocations: 7.969 kB / 464.6 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.2836, allocations: 1.678 MB / 466.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2836, allocations: 3.938 kB / 466.3 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006193/0.2842, allocations: 139.8 kB / 466.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002771/0.2845, allocations: 99.66 kB / 466.6 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.2845, allocations: 27.98 kB / 466.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.2886, allocations: 5.276 MB / 471.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.2886, allocations: 12.05 kB / 471.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.2905, allocations: 1.281 MB / 473.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.2906, allocations: 63.48 kB / 473.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.437e-05/0.2907, allocations: 23.92 kB / 473.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.2911, allocations: 20 kB / 473.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.2912, allocations: 68.47 kB / 473.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.2913, allocations: 24 kB / 473.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.2916, allocations: 259.2 kB / 473.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2916, allocations: 4.062 kB / 473.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009145/0.2925, allocations: 267.5 kB / 473.9 MB, free: 10.23 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.002317/0.2948, allocations: 1.879 MB / 475.7 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.2965, allocations: 1.141 MB / 476.9 MB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2965, allocations: 4 kB / 476.9 MB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009283/0.2974, allocations: 0.762 MB / 477.7 MB, free: 6.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.298, allocations: 63.59 kB / 477.7 MB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008348/0.3063, allocations: 5.679 MB / 483.4 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.3067, allocations: 322.5 kB / 483.7 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004232/0.3071, allocations: 101.1 kB / 483.8 MB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.3075, allocations: 255.2 kB / 484.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3075, allocations: 0 / 484.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07642/0.3839, allocations: 14.17 MB / 498.2 MB, free: 1.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.83, allocations: 7.875 kB / 498.2 MB, free: 1.582 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.233526478987187]