Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.001323/0.001323, allocations: 108.8 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.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.001301/0.001301, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.36/1.36, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.CylinderLeakage,fileNamePrefix="Modelica_4_0_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_0_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.001466/0.001466, allocations: 43.92 kB / 371.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2277, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.007323/0.2351, allocations: 5.294 MB / 428.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003148/0.2382, allocations: 1.705 MB / 430.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.2385, allocations: 16 kB / 430.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003145/0.2416, allocations: 1.419 MB / 431.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000756/0.2424, allocations: 317.6 kB / 432.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.244, allocations: 0.8203 MB / 433 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009384/0.2449, allocations: 0.8245 MB / 433.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009934/0.2459, allocations: 0.6751 MB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004014/0.2463, allocations: 362.7 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005581/0.2469, allocations: 470.1 kB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.256e-05/0.247, allocations: 72 kB / 435.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005006/0.2475, allocations: 255.8 kB / 435.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.2476, allocations: 179.3 kB / 435.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003863/0.248, allocations: 425.9 kB / 436.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.2493, allocations: 1.199 MB / 437.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2493, allocations: 7.938 kB / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2493, allocations: 0 / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2493, allocations: 0 / 437.4 MB, free: 0.5312 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003825/0.2531, allocations: 1.382 MB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2532, allocations: 8.031 kB / 438.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.575e-05/0.2532, allocations: 26.19 kB / 438.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.2534, allocations: 152.4 kB / 439 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/0.255, allocations: 256.2 kB / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.2552, allocations: 201.4 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.205e-05/0.2552, allocations: 74.38 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.2554, allocations: 100.3 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.2569, allocations: 0.9499 MB / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.2569, allocations: 0 / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.313e-05/0.257, allocations: 43.94 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.257, allocations: 24 kB / 440.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2583, allocations: 0.777 MB / 441.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004956/0.2633, allocations: 3.053 MB / 444.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.2651, allocations: 0.8742 MB / 445.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005147/0.2656, allocations: 325 kB / 445.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.403e-05/0.2657, allocations: 24.98 kB / 445.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.2657, allocations: 43.5 kB / 445.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 2.174e-06/0.2657, allocations: 0 / 445.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.002068/0.2678, allocations: 1.003 MB / 446.7 MB, free: 7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.2678, allocations: 90.11 kB / 446.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004254/0.2683, allocations: 364.4 kB / 447.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.2683, allocations: 41.7 kB / 447.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/0.2686, allocations: 392.2 kB / 447.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.2688, allocations: 309.3 kB / 447.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.2691, allocations: 170.9 kB / 448 MB, free: 5.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.2693, allocations: 378.6 kB / 448.4 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004622/0.2697, allocations: 262.5 kB / 448.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006307/0.2704, allocations: 479.4 kB / 449.1 MB, free: 4.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.2715, allocations: 0.7666 MB / 449.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2715, allocations: 0 / 449.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001651/0.2731, allocations: 0.9616 MB / 450.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.2732, allocations: 12 kB / 450.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.2732, allocations: 15.94 kB / 450.9 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003874/0.2736, allocations: 123.4 kB / 451 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007857/0.2743, allocations: 203.7 kB / 451.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004632/0.279, allocations: 5.717 MB / 456.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005963/0.2796, allocations: 111.2 kB / 457 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.971e-05/0.2796, allocations: 40 kB / 457.1 MB, free: 11.93 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.0003358/0.28, allocations: 229.6 kB / 457.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.2801, allocations: 55.67 kB / 457.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.2816, allocations: 0.8403 MB / 458.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2816, allocations: 8 kB / 458.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2816, allocations: 7.938 kB / 458.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.2816, allocations: 11.92 kB / 458.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.2844, allocations: 1.752 MB / 460 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.2844, allocations: 4 kB / 460 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/0.285, allocations: 139.7 kB / 460.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000293/0.2853, allocations: 107.6 kB / 460.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.63e-05/0.2853, allocations: 23.98 kB / 460.2 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004172/0.2895, allocations: 5.295 MB / 465.5 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2895, allocations: 3.938 kB / 465.5 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.2914, allocations: 1.273 MB / 466.8 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.2915, allocations: 67.47 kB / 466.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.2916, allocations: 19.94 kB / 466.9 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003813/0.292, allocations: 20 kB / 466.9 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.2921, allocations: 72.53 kB / 467 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.2921, allocations: 28 kB / 467 MB, free: 1.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002934/0.2924, allocations: 251.2 kB / 467.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2924, allocations: 0 / 467.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009126/0.2933, allocations: 263.5 kB / 467.5 MB, free: 0.8398 MB / 366.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.002364/0.2957, allocations: 1.864 MB / 469.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.2974, allocations: 1.126 MB / 470.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2974, allocations: 0 / 470.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000936/0.2984, allocations: 0.7681 MB / 471.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.299, allocations: 68.64 kB / 471.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008373/0.3073, allocations: 5.697 MB / 477 MB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005988/0.3079, allocations: 0.911 MB / 478 MB, free: 5.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004299/0.3084, allocations: 113.1 kB / 478.1 MB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.3087, allocations: 239.4 kB / 478.3 MB, free: 5.551 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3087, allocations: 0 / 478.3 MB, free: 5.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04877/0.3575, allocations: 13.65 MB / 492 MB, free: 8.074 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.76, allocations: 3.938 kB / 492 MB, free: 8.07 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.144661681028083]