Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.001343/0.001343, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001603/0.001603, allocations: 210 kB / 23.73 MB, free: 4.387 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3271/0.3271, allocations: 44.93 MB / 358.8 MB, free: 6.047 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002744/0.002744, allocations: 59.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.388, allocations: 65.48 MB / 0.557 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003873/0.3919, allocations: 2.226 MB / 0.5591 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3934, allocations: 0.6428 MB / 0.5598 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.3936, allocations: 4 kB / 0.5598 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.3937, allocations: 39.58 kB / 0.5598 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.3939, allocations: 71.28 kB / 0.5599 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.3942, allocations: 87.88 kB / 0.56 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003672/0.3946, allocations: 343.2 kB / 0.5603 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3949, allocations: 111.6 kB / 0.5604 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003139/0.3952, allocations: 147.5 kB / 0.5605 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.3954, allocations: 135.3 kB / 0.5607 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.3954, allocations: 32 kB / 0.5607 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.48e-05/0.3955, allocations: 40 kB / 0.5607 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.394e-05/0.3956, allocations: 67.81 kB / 0.5608 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.3958, allocations: 135.4 kB / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.3963, allocations: 384.3 kB / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3964, allocations: 4 kB / 0.5613 GB, free: 3.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3964, allocations: 0 / 0.5613 GB, free: 3.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.3964, allocations: 0 / 0.5613 GB, free: 3.094 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001112/0.3975, allocations: 0.5094 MB / 0.5618 GB, free: 2.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.3975, allocations: 11.97 kB / 0.5618 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.958e-05/0.3976, allocations: 70.72 kB / 0.5619 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.3979, allocations: 52.62 kB / 0.5619 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.3981, allocations: 145.1 kB / 0.5621 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.3982, allocations: 29.03 kB / 0.5621 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.3982, allocations: 28.38 kB / 0.5621 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.3988, allocations: 278.2 kB / 0.5624 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3988, allocations: 0 / 0.5624 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.3988, allocations: 16 kB / 0.5624 GB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.3988, allocations: 12 kB / 0.5624 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004235/0.3992, allocations: 218.5 kB / 0.5626 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.4012, allocations: 0.9121 MB / 0.5635 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.4013, allocations: 34.58 kB / 0.5635 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.957e-05/0.4013, allocations: 28.84 kB / 0.5636 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.4014, allocations: 4 kB / 0.5636 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.4014, allocations: 30.56 kB / 0.5636 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.843e-06/0.4014, allocations: 0 / 0.5636 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002483/0.4016, allocations: 69.55 kB / 0.5637 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.4017, allocations: 51.41 kB / 0.5637 GB, free: 464 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004501/0.4021, allocations: 336 kB / 0.564 GB, free: 124 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.4022, allocations: 25.7 kB / 0.5641 GB, free: 92 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.4024, allocations: 239.6 kB / 0.5643 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.4024, allocations: 19.88 kB / 0.5643 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4025, allocations: 57.59 kB / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.4027, allocations: 334.8 kB / 0.5647 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.4029, allocations: 63.92 kB / 0.5647 GB, free: 15.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.403, allocations: 89.67 kB / 0.5648 GB, free: 15.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.4033, allocations: 122.2 kB / 0.5649 GB, free: 15.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4033, allocations: 0 / 0.5649 GB, free: 15.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004158/0.4037, allocations: 241.5 kB / 0.5652 GB, free: 14.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4037, allocations: 7.938 kB / 0.5652 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4037, allocations: 4 kB / 0.5652 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.4037, allocations: 0 / 0.5652 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.404, allocations: 51.91 kB / 0.5652 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.404, allocations: 4 kB / 0.5652 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.4043, allocations: 39.67 kB / 0.5653 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.4043, allocations: 12 kB / 0.5653 GB, free: 14.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.4045, allocations: 129.8 kB / 0.5654 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.664e-05/0.4045, allocations: 23.84 kB / 0.5654 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.4045, allocations: 24.98 kB / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4045, allocations: 0 / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.4046, allocations: 4 kB / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4046, allocations: 0 / 0.5655 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.4053, allocations: 474.4 kB / 0.5659 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4053, allocations: 3.938 kB / 0.5659 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-05/0.4053, allocations: 4 kB / 0.5659 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4053, allocations: 0 / 0.5659 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.4053, allocations: 0 / 0.5659 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4053, allocations: 4 kB / 0.5659 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4053, allocations: 4.062 kB / 0.5659 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.4055, allocations: 101.8 kB / 0.566 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.4055, allocations: 27.89 kB / 0.5661 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.4055, allocations: 0 / 0.5661 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.4057, allocations: 0 / 0.5661 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.4057, allocations: 15.91 kB / 0.5661 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.4057, allocations: 0 / 0.5661 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002668/0.4059, allocations: 219.1 kB / 0.5663 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4059, allocations: 3.938 kB / 0.5663 GB, free: 13.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.4062, allocations: 67.84 kB / 0.5664 GB, free: 13.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005395/0.4068, allocations: 0.6366 MB / 0.567 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002664/0.407, allocations: 107.8 kB / 0.5671 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.407, allocations: 0 / 0.5671 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.412e-05/0.4071, allocations: 8 kB / 0.5671 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.4074, allocations: 20.98 kB / 0.5671 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.4105, allocations: 2.228 MB / 0.5693 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.4106, allocations: 134.2 kB / 0.5694 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.4107, allocations: 21.95 kB / 0.5694 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.4109, allocations: 71.41 kB / 0.5695 GB, free: 10.24 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4109, allocations: 0 / 0.5695 GB, free: 10.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.4442, allocations: 4.829 MB / 0.5742 GB, free: 5.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.69, allocations: 0 / 0.5742 GB, free: 5.562 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.858456887770444]