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.001356/0.001356, 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.001418/0.001418, allocations: 210.7 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.478/1.478, 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.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.2303/0.2303, allocations: 46.96 MB / 360.9 MB, free: 4.121 MB / 286.1 MB " [Timeout remaining time 180] 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.001997/0.001997, allocations: 67.84 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3882, allocations: 66.03 MB / 0.5606 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004414/0.3926, allocations: 2.227 MB / 0.5628 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3942, allocations: 0.6273 MB / 0.5634 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.3943, allocations: 4 kB / 0.5634 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.3944, allocations: 47.58 kB / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001957/0.3946, allocations: 71.28 kB / 0.5635 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.3949, allocations: 87.88 kB / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.3953, allocations: 347.2 kB / 0.5639 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.3956, allocations: 119.6 kB / 0.564 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.3959, allocations: 151.5 kB / 0.5642 GB, free: 424 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.3962, allocations: 159.4 kB / 0.5643 GB, free: 264 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.3962, allocations: 36 kB / 0.5644 GB, free: 228 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.3963, allocations: 39.94 kB / 0.5644 GB, free: 188 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.3964, allocations: 67.81 kB / 0.5645 GB, free: 120 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3966, allocations: 135.5 kB / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.397, allocations: 380.2 kB / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.397, allocations: 0 / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.397, allocations: 4 kB / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3971, allocations: 0 / 0.5649 GB, free: 15.61 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.001024/0.3981, allocations: 0.5055 MB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3981, allocations: 12.03 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.449e-05/0.3982, allocations: 66.72 kB / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.3986, allocations: 56.69 kB / 0.5656 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.3987, allocations: 148.8 kB / 0.5657 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.3988, allocations: 29.03 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.3988, allocations: 28.38 kB / 0.5658 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.3993, allocations: 278.2 kB / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3994, allocations: 3.938 kB / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.3994, allocations: 11.94 kB / 0.566 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3994, allocations: 11.98 kB / 0.5661 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.3999, allocations: 214.5 kB / 0.5663 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.4017, allocations: 0.9082 MB / 0.5672 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.051e-05/0.4018, allocations: 38.5 kB / 0.5672 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.217e-05/0.4018, allocations: 20.92 kB / 0.5672 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.4018, allocations: 4 kB / 0.5672 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.4019, allocations: 34.56 kB / 0.5672 GB, free: 13.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.4019, allocations: 4 kB / 0.5672 GB, free: 13.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002155/0.4021, allocations: 69.53 kB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.4021, allocations: 55.41 kB / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.4026, allocations: 332 kB / 0.5677 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.4026, allocations: 29.64 kB / 0.5677 GB, free: 12.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.4027, allocations: 235.5 kB / 0.5679 GB, free: 12.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.4028, allocations: 19.88 kB / 0.568 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.466e-05/0.4029, allocations: 49.66 kB / 0.568 GB, free: 12.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.403, allocations: 338.8 kB / 0.5683 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.4032, allocations: 64.09 kB / 0.5684 GB, free: 11.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.4033, allocations: 85.69 kB / 0.5685 GB, free: 11.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.4035, allocations: 122.2 kB / 0.5686 GB, free: 11.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4035, allocations: 0 / 0.5686 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003982/0.4039, allocations: 241.4 kB / 0.5688 GB, free: 11.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.4039, allocations: 7.938 kB / 0.5688 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4039, allocations: 3.938 kB / 0.5688 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4039, allocations: 11.92 kB / 0.5688 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.4042, allocations: 59.94 kB / 0.5689 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4042, allocations: 3.984 kB / 0.5689 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.4045, allocations: 39.69 kB / 0.5689 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.4045, allocations: 4 kB / 0.5689 GB, free: 11.31 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.0001268/0.4046, allocations: 137.8 kB / 0.5691 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.745e-05/0.4047, allocations: 19.84 kB / 0.5691 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.4047, allocations: 24.98 kB / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.4047, allocations: 0 / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4047, allocations: 0 / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.4047, allocations: 0 / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.4054, allocations: 478.4 kB / 0.5696 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4054, allocations: 0 / 0.5696 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.14e-05/0.4054, allocations: 4 kB / 0.5696 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.4054, allocations: 0 / 0.5696 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.4054, allocations: 3.984 kB / 0.5696 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4054, allocations: 4 kB / 0.5696 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4054, allocations: 0 / 0.5696 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.4056, allocations: 101.7 kB / 0.5697 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.4056, allocations: 23.89 kB / 0.5697 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.4056, allocations: 4.094 kB / 0.5697 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.4058, allocations: 7.984 kB / 0.5697 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.322e-05/0.4058, allocations: 0 / 0.5697 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.4058, allocations: 0 / 0.5697 GB, free: 10.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002712/0.406, allocations: 223.1 kB / 0.5699 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.406, allocations: 0 / 0.5699 GB, free: 10.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.4063, allocations: 67.84 kB / 0.57 GB, free: 10.14 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.0004495/0.4068, allocations: 0.6288 MB / 0.5706 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.407, allocations: 111.9 kB / 0.5707 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.407, allocations: 0 / 0.5707 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.403e-05/0.4071, allocations: 12 kB / 0.5707 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.4074, allocations: 20.97 kB / 0.5707 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.4103, allocations: 2.233 MB / 0.5729 GB, free: 7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.4105, allocations: 134.1 kB / 0.5731 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.4106, allocations: 21.94 kB / 0.5731 GB, free: 6.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.4107, allocations: 75.41 kB / 0.5731 GB, free: 6.758 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4107, allocations: 4 kB / 0.5732 GB, free: 6.754 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03396/0.4447, allocations: 4.91 MB / 0.5779 GB, free: 1.992 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.66, allocations: 7.234 kB / 0.578 GB, free: 1.988 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.600265086017316]