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.001883/0.001883, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002296/0.002296, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.2315/0.2315, allocations: 46.92 MB / 357.8 MB, free: 10.31 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.84 kB / 0.4916 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1271, allocations: 65.99 MB / 0.5561 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004202/0.1313, allocations: 2.375 MB / 0.5584 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.1328, allocations: 0.6583 MB / 0.559 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1329, allocations: 8 kB / 0.559 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.133, allocations: 43.58 kB / 0.5591 GB, free: 2.723 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.1332, allocations: 67.34 kB / 0.5591 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.1335, allocations: 99.81 kB / 0.5592 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.1339, allocations: 339.3 kB / 0.5596 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.1342, allocations: 127.3 kB / 0.5597 GB, free: 2.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.1345, allocations: 143.6 kB / 0.5598 GB, free: 1.961 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1347, allocations: 155.4 kB / 0.56 GB, free: 1.809 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.1348, allocations: 36 kB / 0.56 GB, free: 1.773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.743e-05/0.1349, allocations: 35.94 kB / 0.56 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.013e-05/0.135, allocations: 75.81 kB / 0.5601 GB, free: 1.664 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.1351, allocations: 155.2 kB / 0.5603 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.1356, allocations: 378.5 kB / 0.5606 GB, free: 1.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1356, allocations: 0 / 0.5606 GB, free: 1.141 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1356, allocations: 0 / 0.5606 GB, free: 1.141 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.1356, allocations: 0 / 0.5606 GB, free: 1.141 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.001113/0.1367, allocations: 0.5886 MB / 0.5612 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.1368, allocations: 8.031 kB / 0.5612 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.71e-05/0.1368, allocations: 16.84 kB / 0.5612 GB, free: 492 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.019e-05/0.1369, allocations: 70.72 kB / 0.5613 GB, free: 412 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.1372, allocations: 48.69 kB / 0.5613 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.1374, allocations: 204 kB / 0.5615 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.1375, allocations: 25.03 kB / 0.5615 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.1375, allocations: 32.38 kB / 0.5616 GB, free: 64 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.1381, allocations: 274 kB / 0.5618 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1381, allocations: 3.984 kB / 0.5618 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.1381, allocations: 16 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1381, allocations: 8 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004496/0.1386, allocations: 218.5 kB / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1405, allocations: 1.021 MB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.421e-05/0.1406, allocations: 26.58 kB / 0.5631 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.613e-05/0.1407, allocations: 32.84 kB / 0.5631 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.1407, allocations: 0 / 0.5631 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1407, allocations: 34.5 kB / 0.5632 GB, free: 14.35 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1407, allocations: 4 kB / 0.5632 GB, free: 14.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002192/0.1409, allocations: 65.61 kB / 0.5632 GB, free: 14.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.141, allocations: 59.41 kB / 0.5633 GB, free: 14.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.1414, allocations: 318.8 kB / 0.5636 GB, free: 13.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.1414, allocations: 25.7 kB / 0.5636 GB, free: 13.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.1416, allocations: 239.5 kB / 0.5638 GB, free: 13.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.1416, allocations: 11.94 kB / 0.5638 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1417, allocations: 57.66 kB / 0.5639 GB, free: 13.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.1419, allocations: 334.9 kB / 0.5642 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.142, allocations: 63.92 kB / 0.5643 GB, free: 13.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.1422, allocations: 93.67 kB / 0.5644 GB, free: 13.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.1424, allocations: 117.7 kB / 0.5645 GB, free: 12.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1424, allocations: 0 / 0.5645 GB, free: 12.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004327/0.1429, allocations: 242 kB / 0.5647 GB, free: 12.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1429, allocations: 11.94 kB / 0.5647 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1429, allocations: 0 / 0.5647 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1429, allocations: 4 kB / 0.5647 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.1432, allocations: 51.91 kB / 0.5648 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1432, allocations: 0 / 0.5648 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.1435, allocations: 51.53 kB / 0.5648 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.1435, allocations: 8 kB / 0.5648 GB, free: 12.55 MB / 430.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.000143/0.1437, allocations: 133.8 kB / 0.565 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-05/0.1437, allocations: 27.8 kB / 0.565 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.56e-05/0.1438, allocations: 24.89 kB / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1438, allocations: 3.984 kB / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1438, allocations: 0 / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1438, allocations: 0 / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007279/0.1445, allocations: 0.511 MB / 0.5655 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1445, allocations: 4 kB / 0.5655 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.357e-05/0.1446, allocations: 4.062 kB / 0.5655 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.1446, allocations: 7.984 kB / 0.5655 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1446, allocations: 0 / 0.5655 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1446, allocations: 0 / 0.5655 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1446, allocations: 0 / 0.5655 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.1447, allocations: 97.84 kB / 0.5656 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.998e-05/0.1448, allocations: 101 kB / 0.5657 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.456e-05/0.1449, allocations: 12.02 kB / 0.5657 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.145, allocations: 0 / 0.5657 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-05/0.145, allocations: 3.938 kB / 0.5657 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.145, allocations: 4 kB / 0.5657 GB, free: 11.51 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002837/0.1453, allocations: 225.9 kB / 0.566 GB, free: 11.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1453, allocations: 0 / 0.566 GB, free: 11.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000302/0.1456, allocations: 63.89 kB / 0.566 GB, free: 11.23 MB / 430.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.0005318/0.1461, allocations: 0.6326 MB / 0.5666 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002821/0.1464, allocations: 107.9 kB / 0.5667 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1464, allocations: 3.938 kB / 0.5667 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.233e-05/0.1464, allocations: 4 kB / 0.5667 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1468, allocations: 29.09 kB / 0.5668 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.1497, allocations: 2.229 MB / 0.569 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.1501, allocations: 0.744 MB / 0.5697 GB, free: 7.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.1502, allocations: 25.92 kB / 0.5697 GB, free: 7.297 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.1504, allocations: 71.42 kB / 0.5698 GB, free: 7.227 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1504, allocations: 0 / 0.5698 GB, free: 7.227 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.1709, allocations: 4.24 MB / 0.5739 GB, free: 3.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.916/9.087, allocations: 1.875 kB / 0.5739 GB, free: 3.117 MB / 430.1 MB " [Timeout remaining time 651] (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: 12.164975179999601]