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.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.001288/0.001288, allocations: 117.6 kB / 18.5 MB, free: 4.582 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.001453/0.001453, allocations: 190.9 kB / 21.44 MB, free: 1.645 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.484/1.484, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.2258/0.2258, allocations: 44.92 MB / 349.6 MB, free: 1.746 MB / 270.1 MB " [Timeout remaining time 180] 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.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(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: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 66.58 kB / 491.8 MB, free: 29.85 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 64.25 MB / 0.543 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003786/0.118, allocations: 2.372 MB / 0.5453 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.1191, allocations: 0.6155 MB / 0.5459 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.603e-05/0.1192, allocations: 11.94 kB / 0.5459 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.1193, allocations: 39.58 kB / 0.546 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.1195, allocations: 71.33 kB / 0.546 GB, free: 1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.1197, allocations: 87.83 kB / 0.5461 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.1201, allocations: 351.3 kB / 0.5464 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.1204, allocations: 107.5 kB / 0.5465 GB, free: 476 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.1206, allocations: 139.6 kB / 0.5467 GB, free: 336 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1208, allocations: 159.4 kB / 0.5468 GB, free: 176 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/0.1209, allocations: 32 kB / 0.5469 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.62e-05/0.1209, allocations: 32 kB / 0.5469 GB, free: 112 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.755e-05/0.121, allocations: 75.75 kB / 0.547 GB, free: 36 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.1211, allocations: 155.3 kB / 0.5471 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.1216, allocations: 374.8 kB / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1216, allocations: 0 / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1216, allocations: 0 / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1216, allocations: 0 / 0.5475 GB, free: 15.52 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.0009799/0.1226, allocations: 0.5862 MB / 0.548 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1226, allocations: 11.97 kB / 0.5481 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.1227, allocations: 74.72 kB / 0.5481 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.542e-05/0.1228, allocations: 32.75 kB / 0.5482 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.123, allocations: 204 kB / 0.5484 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.123, allocations: 25.03 kB / 0.5484 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/0.1231, allocations: 32.31 kB / 0.5484 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.1236, allocations: 278.2 kB / 0.5487 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.1236, allocations: 0 / 0.5487 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.1236, allocations: 15.98 kB / 0.5487 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1236, allocations: 8 kB / 0.5487 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.1241, allocations: 214.5 kB / 0.5489 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.126, allocations: 1.006 MB / 0.5499 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.855e-05/0.126, allocations: 38.56 kB / 0.5499 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.288e-05/0.1261, allocations: 20.92 kB / 0.5499 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.1261, allocations: 0 / 0.5499 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.1261, allocations: 38.56 kB / 0.55 GB, free: 12.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1261, allocations: 0 / 0.55 GB, free: 12.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002308/0.1264, allocations: 77.44 kB / 0.55 GB, free: 12.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1264, allocations: 55.52 kB / 0.5501 GB, free: 12.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004021/0.1268, allocations: 322.9 kB / 0.5504 GB, free: 12.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.1268, allocations: 25.7 kB / 0.5504 GB, free: 12.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.127, allocations: 239.5 kB / 0.5507 GB, free: 12.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.127, allocations: 15.92 kB / 0.5507 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.667e-05/0.1271, allocations: 61.55 kB / 0.5507 GB, free: 11.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1273, allocations: 330.8 kB / 0.5511 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.1274, allocations: 67.91 kB / 0.5511 GB, free: 11.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1276, allocations: 93.69 kB / 0.5512 GB, free: 11.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1278, allocations: 127.4 kB / 0.5513 GB, free: 11.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1278, allocations: 0 / 0.5513 GB, free: 11.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003992/0.1282, allocations: 225.5 kB / 0.5515 GB, free: 11.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.1282, allocations: 11.94 kB / 0.5516 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1283, allocations: 0 / 0.5516 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1283, allocations: 3.984 kB / 0.5516 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.1286, allocations: 67.88 kB / 0.5516 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1286, allocations: 0 / 0.5516 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1288, allocations: 39.72 kB / 0.5517 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1288, allocations: 4 kB / 0.5517 GB, free: 10.96 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.0001441/0.129, allocations: 133.8 kB / 0.5518 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.129, allocations: 27.8 kB / 0.5518 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.1291, allocations: 20.89 kB / 0.5518 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1291, allocations: 4 kB / 0.5518 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1291, allocations: 4 kB / 0.5518 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1291, allocations: 0 / 0.5518 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006483/0.1297, allocations: 0.5032 MB / 0.5523 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1297, allocations: 4 kB / 0.5523 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.502e-05/0.1298, allocations: 3.984 kB / 0.5523 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1298, allocations: 4 kB / 0.5523 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1298, allocations: 0 / 0.5523 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1298, allocations: 0 / 0.5523 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1298, allocations: 4.062 kB / 0.5524 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.13, allocations: 105.7 kB / 0.5525 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.1301, allocations: 104.9 kB / 0.5526 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.1301, allocations: 0 / 0.5526 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1303, allocations: 4 kB / 0.5526 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.951e-05/0.1303, allocations: 0 / 0.5526 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.1303, allocations: 4.031 kB / 0.5526 GB, free: 9.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002758/0.1306, allocations: 225.9 kB / 0.5528 GB, free: 9.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1306, allocations: 3.938 kB / 0.5528 GB, free: 9.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002801/0.1308, allocations: 63.89 kB / 0.5528 GB, free: 9.645 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.0005333/0.1314, allocations: 0.6366 MB / 0.5535 GB, free: 8.977 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002685/0.1316, allocations: 99.91 kB / 0.5536 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1316, allocations: 0 / 0.5536 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.411e-05/0.1317, allocations: 8 kB / 0.5536 GB, free: 8.871 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.132, allocations: 28.81 kB / 0.5536 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003404/0.1354, allocations: 2.233 MB / 0.5558 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.1358, allocations: 0.7478 MB / 0.5565 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.1359, allocations: 25.92 kB / 0.5565 GB, free: 5.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.136, allocations: 71.42 kB / 0.5566 GB, free: 5.637 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.136, allocations: 0 / 0.5566 GB, free: 5.637 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.1632, allocations: 4.197 MB / 0.5607 GB, free: 1.547 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.38/8.543, allocations: 12.92 kB / 0.5607 GB, free: 1.539 MB / 414.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.479201125912368]