Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001907/0.001907, 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.002353/0.002353, allocations: 212 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2461/0.2461, allocations: 46.97 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 71.89 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3833, allocations: 66.03 MB / 0.5606 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003971/0.3873, allocations: 2.227 MB / 0.5628 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3885, allocations: 0.635 MB / 0.5634 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.386e-05/0.3886, allocations: 4 kB / 0.5634 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.604e-05/0.3887, allocations: 43.58 kB / 0.5634 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.3888, allocations: 71.34 kB / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.3891, allocations: 91.88 kB / 0.5636 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.3895, allocations: 343.2 kB / 0.5639 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.3897, allocations: 115.6 kB / 0.564 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.3899, allocations: 143.6 kB / 0.5642 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.3902, allocations: 131.4 kB / 0.5643 GB, free: 460 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.3903, allocations: 36 kB / 0.5643 GB, free: 424 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.277e-05/0.3904, allocations: 40 kB / 0.5644 GB, free: 384 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.728e-05/0.3904, allocations: 75.75 kB / 0.5644 GB, free: 308 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.3905, allocations: 123.5 kB / 0.5646 GB, free: 184 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.391, allocations: 388.3 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.391, allocations: 0 / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.391, allocations: 0 / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.391, allocations: 0 / 0.5649 GB, free: 15.8 MB / 414.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.0008801/0.3919, allocations: 0.5132 MB / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3919, allocations: 8.031 kB / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.866e-05/0.392, allocations: 70.72 kB / 0.5655 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.3923, allocations: 52.62 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.3925, allocations: 140.9 kB / 0.5657 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.3925, allocations: 24.97 kB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.3926, allocations: 40.36 kB / 0.5657 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3931, allocations: 278.2 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3931, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.3931, allocations: 12 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3932, allocations: 8 kB / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004227/0.3936, allocations: 214.5 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.3953, allocations: 0.9236 MB / 0.5671 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.406e-05/0.3954, allocations: 30.58 kB / 0.5672 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.999e-05/0.3955, allocations: 24.91 kB / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.3955, allocations: 0 / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.3955, allocations: 38.5 kB / 0.5672 GB, free: 13.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.3955, allocations: 0 / 0.5672 GB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002237/0.3958, allocations: 81.58 kB / 0.5673 GB, free: 13.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3958, allocations: 51.41 kB / 0.5674 GB, free: 13.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/0.3962, allocations: 336 kB / 0.5677 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.3962, allocations: 25.7 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3964, allocations: 231.5 kB / 0.5679 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3964, allocations: 19.88 kB / 0.5679 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-05/0.3965, allocations: 53.66 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.3967, allocations: 330.8 kB / 0.5683 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.3968, allocations: 59.98 kB / 0.5684 GB, free: 12.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.397, allocations: 89.67 kB / 0.5684 GB, free: 11.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.3973, allocations: 130.2 kB / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3973, allocations: 0 / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003978/0.3977, allocations: 229.5 kB / 0.5688 GB, free: 11.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3977, allocations: 11.92 kB / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3977, allocations: 0 / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3977, allocations: 4 kB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.3981, allocations: 59.84 kB / 0.5689 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3981, allocations: 0 / 0.5689 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.3983, allocations: 43.67 kB / 0.5689 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.3983, allocations: 12.03 kB / 0.5689 GB, free: 11.5 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.0001314/0.3985, allocations: 133.8 kB / 0.569 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.636e-05/0.3985, allocations: 19.84 kB / 0.5691 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.3986, allocations: 20.98 kB / 0.5691 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3986, allocations: 0 / 0.5691 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3986, allocations: 0 / 0.5691 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3986, allocations: 0 / 0.5691 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006351/0.3992, allocations: 478.4 kB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3992, allocations: 0 / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.13e-05/0.3992, allocations: 8.062 kB / 0.5695 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3992, allocations: 4 kB / 0.5695 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-06/0.3992, allocations: 4 kB / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3992, allocations: 0 / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3992, allocations: 0 / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.3994, allocations: 105.7 kB / 0.5697 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.3994, allocations: 19.89 kB / 0.5697 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.3995, allocations: 4 kB / 0.5697 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3996, allocations: 0 / 0.5697 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.278e-05/0.3996, allocations: 4 kB / 0.5697 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.3996, allocations: 8.016 kB / 0.5697 GB, free: 10.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000263/0.3999, allocations: 223.1 kB / 0.5699 GB, free: 10.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3999, allocations: 3.938 kB / 0.5699 GB, free: 10.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.4001, allocations: 67.84 kB / 0.57 GB, free: 10.32 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.0005043/0.4006, allocations: 0.6365 MB / 0.5706 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.4009, allocations: 99.89 kB / 0.5707 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4009, allocations: 0 / 0.5707 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.411e-05/0.4009, allocations: 12.16 kB / 0.5707 GB, free: 9.547 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.4012, allocations: 21.05 kB / 0.5707 GB, free: 9.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.4042, allocations: 2.229 MB / 0.5729 GB, free: 7.199 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.4043, allocations: 134.2 kB / 0.573 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.4045, allocations: 25.94 kB / 0.573 GB, free: 7.027 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.4046, allocations: 75.41 kB / 0.5731 GB, free: 6.953 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4046, allocations: 3.938 kB / 0.5731 GB, free: 6.949 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03275/0.4373, allocations: 4.821 MB / 0.5778 GB, free: 2.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.72, allocations: 11.3 kB / 0.5778 GB, free: 2.266 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.816437729168683]