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.002003/0.002003, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002545/0.002545, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.506/1.506, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2364/0.2364, allocations: 46.93 MB / 357.1 MB, free: 10.3 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.002163/0.002163, allocations: 67.89 kB / 0.4909 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1278, allocations: 66 MB / 0.5554 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.00397/0.1318, allocations: 2.382 MB / 0.5577 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.1331, allocations: 0.6583 MB / 0.5583 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.1332, allocations: 4 kB / 0.5583 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.1333, allocations: 43.58 kB / 0.5584 GB, free: 2.719 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.1335, allocations: 75.33 kB / 0.5585 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.1338, allocations: 99.81 kB / 0.5586 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.1342, allocations: 335.3 kB / 0.5589 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.1344, allocations: 127.3 kB / 0.559 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002738/0.1347, allocations: 143.5 kB / 0.5591 GB, free: 1.953 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.1349, allocations: 151.4 kB / 0.5593 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.913e-05/0.135, allocations: 40 kB / 0.5593 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.949e-05/0.135, allocations: 39.94 kB / 0.5594 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.169e-05/0.1351, allocations: 71.81 kB / 0.5594 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.1353, allocations: 155.2 kB / 0.5596 GB, free: 1.504 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.1357, allocations: 382.5 kB / 0.5599 GB, free: 1.129 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1357, allocations: 0 / 0.5599 GB, free: 1.129 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1357, allocations: 0 / 0.5599 GB, free: 1.129 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1358, allocations: 0 / 0.5599 GB, free: 1.129 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.001017/0.1368, allocations: 0.5847 MB / 0.5605 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1368, allocations: 8.031 kB / 0.5605 GB, free: 500 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.95e-05/0.1369, allocations: 70.72 kB / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003051/0.1372, allocations: 52.69 kB / 0.5606 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1374, allocations: 202.5 kB / 0.5608 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.1374, allocations: 25.03 kB / 0.5608 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.1375, allocations: 28.38 kB / 0.5609 GB, free: 76 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000535/0.138, allocations: 278.2 kB / 0.5611 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.138, allocations: 0 / 0.5611 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.1381, allocations: 12 kB / 0.5611 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1381, allocations: 8 kB / 0.5612 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004369/0.1385, allocations: 218.5 kB / 0.5614 GB, free: 15.56 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.1404, allocations: 1.029 MB / 0.5624 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.871e-05/0.1405, allocations: 30.56 kB / 0.5624 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/0.1405, allocations: 32.86 kB / 0.5624 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.1405, allocations: 3.938 kB / 0.5624 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.1406, allocations: 30.56 kB / 0.5625 GB, free: 14.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.914e-06/0.1406, allocations: 0 / 0.5625 GB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002192/0.1408, allocations: 69.55 kB / 0.5625 GB, free: 14.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.1408, allocations: 59.41 kB / 0.5626 GB, free: 14.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.1413, allocations: 323 kB / 0.5629 GB, free: 13.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1413, allocations: 25.7 kB / 0.5629 GB, free: 13.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.1414, allocations: 235.5 kB / 0.5631 GB, free: 13.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.1415, allocations: 15.92 kB / 0.5632 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1416, allocations: 57.66 kB / 0.5632 GB, free: 13.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1417, allocations: 330.8 kB / 0.5635 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1419, allocations: 63.97 kB / 0.5636 GB, free: 13.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.1421, allocations: 97.62 kB / 0.5637 GB, free: 13.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.1423, allocations: 117.7 kB / 0.5638 GB, free: 12.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1423, allocations: 0 / 0.5638 GB, free: 12.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004827/0.1428, allocations: 241.9 kB / 0.564 GB, free: 12.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1428, allocations: 7.938 kB / 0.564 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1428, allocations: 0 / 0.564 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1428, allocations: 4 kB / 0.564 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.1432, allocations: 51.91 kB / 0.5641 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.1432, allocations: 8.016 kB / 0.5641 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.1435, allocations: 43.66 kB / 0.5641 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.1435, allocations: 15.94 kB / 0.5642 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.0001766/0.1437, allocations: 133.8 kB / 0.5643 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.1437, allocations: 23.8 kB / 0.5643 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.15e-05/0.1438, allocations: 24.89 kB / 0.5643 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1438, allocations: 0 / 0.5643 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1438, allocations: 0 / 0.5643 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1438, allocations: 0 / 0.5643 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007947/0.1446, allocations: 0.5149 MB / 0.5648 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1446, allocations: 0 / 0.5648 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.921e-05/0.1446, allocations: 7.984 kB / 0.5648 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1446, allocations: 0 / 0.5648 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.1446, allocations: 0 / 0.5648 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1446, allocations: 0 / 0.5648 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.1447, allocations: 4 kB / 0.5648 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.1448, allocations: 97.91 kB / 0.5649 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.1449, allocations: 101 kB / 0.565 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.1449, allocations: 7.984 kB / 0.565 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.1451, allocations: 0 / 0.565 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.1451, allocations: 3.938 kB / 0.565 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.1451, allocations: 7.938 kB / 0.565 GB, free: 11.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.1454, allocations: 230 kB / 0.5653 GB, free: 11.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1454, allocations: 0 / 0.5653 GB, free: 11.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1457, allocations: 63.89 kB / 0.5653 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.0005348/0.1462, allocations: 0.6326 MB / 0.5659 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.1465, allocations: 107.9 kB / 0.566 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1465, allocations: 0 / 0.566 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.903e-05/0.1466, allocations: 11.94 kB / 0.5661 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.1469, allocations: 26.73 kB / 0.5661 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.15, allocations: 2.222 MB / 0.5683 GB, free: 8.098 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.1504, allocations: 0.744 MB / 0.569 GB, free: 7.328 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001558/0.1506, allocations: 25.94 kB / 0.569 GB, free: 7.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.1507, allocations: 67.42 kB / 0.5691 GB, free: 7.238 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1507, allocations: 0 / 0.5691 GB, free: 7.238 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.1778, allocations: 4.202 MB / 0.5732 GB, free: 3.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.403/8.581, allocations: 0 / 0.5732 GB, free: 3.145 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: 11.542707570130005]