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.0008047/0.0008047, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007491/0.0007491, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8298/0.8298, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.474e-05/3.666e-05, allocations: 2.281 kB / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004104/0.004141, allocations: 4.678 MB / 323.1 MB, free: 1.535 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.006009, allocations: 1.6 MB / 324.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.00622, allocations: 20 kB / 324.7 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.007646, allocations: 1.391 MB / 326.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004621/0.008108, allocations: 325.4 kB / 326.4 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.008927, allocations: 0.7616 MB / 327.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005665/0.009494, allocations: 0.8399 MB / 328 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006876/0.01018, allocations: 0.679 MB / 328.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.01055, allocations: 0.5222 MB / 329.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.01084, allocations: 347 kB / 329.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.496e-05/0.0109, allocations: 72 kB / 329.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.01122, allocations: 255.5 kB / 329.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.234e-05/0.0113, allocations: 183.3 kB / 330.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.01147, allocations: 283.3 kB / 330.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.01226, allocations: 1.219 MB / 331.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.01226, allocations: 4 kB / 331.6 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01226, allocations: 4 kB / 331.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.01227, allocations: 0 / 331.6 MB, free: 9.023 MB / 298.7 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.002109/0.01438, allocations: 1.371 MB / 333 MB, free: 7.617 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.01442, allocations: 12.92 kB / 333 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.01454, allocations: 152.3 kB / 333.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007957/0.01534, allocations: 256.2 kB / 333.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.01551, allocations: 213.3 kB / 333.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.01555, allocations: 70.38 kB / 333.7 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.955e-05/0.01565, allocations: 100.4 kB / 333.7 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009975/0.01665, allocations: 0.931 MB / 334.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.01667, allocations: 12.14 kB / 334.7 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.01673, allocations: 44.12 kB / 334.7 MB, free: 5.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.01674, allocations: 20 kB / 334.8 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000844/0.01759, allocations: 0.7808 MB / 335.5 MB, free: 5.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.02077, allocations: 2.801 MB / 338.3 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.02182, allocations: 0.8702 MB / 339.2 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.02217, allocations: 333 kB / 339.5 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.158e-05/0.02223, allocations: 28.98 kB / 339.6 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.02225, allocations: 39.56 kB / 339.6 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=87): time 2.234e-06/0.02225, allocations: 0 / 339.6 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of matching and sorting (n=87): time 0.001642/0.02389, allocations: 0.9993 MB / 340.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.02393, allocations: 94.05 kB / 340.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.0242, allocations: 384.2 kB / 341.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.02423, allocations: 41.7 kB / 341.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.02437, allocations: 384.2 kB / 341.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.02451, allocations: 313.3 kB / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.02466, allocations: 174.9 kB / 342 MB, free: 14.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.02475, allocations: 362.8 kB / 342.3 MB, free: 14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.02505, allocations: 270.5 kB / 342.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.02543, allocations: 475.4 kB / 343 MB, free: 13.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007232/0.02616, allocations: 0.7706 MB / 343.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.02616, allocations: 0 / 343.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001008/0.02717, allocations: 0.969 MB / 344.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.02719, allocations: 11.98 kB / 344.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.0272, allocations: 8 kB / 344.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002357/0.02743, allocations: 123.6 kB / 344.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.02783, allocations: 207.7 kB / 345.1 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.03055, allocations: 5.689 MB / 350.8 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.03082, allocations: 103.2 kB / 350.9 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.03085, allocations: 43.94 kB / 351 MB, free: 4.707 MB / 314.7 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.0001832/0.03104, allocations: 221.6 kB / 351.2 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.0311, allocations: 59.73 kB / 351.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009319/0.03203, allocations: 0.8482 MB / 352.1 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.03203, allocations: 12 kB / 352.1 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.03204, allocations: 4 kB / 352.1 MB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.03204, allocations: 3.984 kB / 352.1 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.03392, allocations: 1.65 MB / 353.7 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.03392, allocations: 4.281 kB / 353.8 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.03419, allocations: 139.8 kB / 353.9 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001581/0.03435, allocations: 103.4 kB / 354 MB, free: 1.543 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.03438, allocations: 20 kB / 354 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.03649, allocations: 5.268 MB / 359.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.03649, allocations: 0 / 359.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.03762, allocations: 1.273 MB / 360.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.03768, allocations: 67.69 kB / 360.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.03772, allocations: 23.98 kB / 360.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.0379, allocations: 24 kB / 360.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/0.03823, allocations: 72.41 kB / 360.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.03825, allocations: 27.98 kB / 360.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001704/0.03842, allocations: 251.2 kB / 361 MB, free: 10.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03842, allocations: 0 / 361 MB, free: 10.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005713/0.03899, allocations: 267.5 kB / 361.3 MB, free: 9.75 MB / 330.7 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.001447/0.04044, allocations: 1.864 MB / 363.1 MB, free: 7.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.04146, allocations: 1.134 MB / 364.3 MB, free: 6.633 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.04146, allocations: 0 / 364.3 MB, free: 6.633 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.04196, allocations: 0.7575 MB / 365 MB, free: 5.824 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.04234, allocations: 65.36 kB / 365.1 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/0.04762, allocations: 5.687 MB / 370.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.04784, allocations: 318.3 kB / 371.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.04811, allocations: 109.1 kB / 371.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.04834, allocations: 248.4 kB / 371.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.04834, allocations: 0 / 371.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.07822, allocations: 13.76 MB / 385.2 MB, free: 1.527 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/7.991, allocations: 4 kB / 385.2 MB, free: 1.523 MB / 346.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins/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: 9.570643086917698]