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.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.001406/0.001406, allocations: 121 kB / 18.49 MB, free: 4.586 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.001499/0.001499, allocations: 213.5 kB / 21.45 MB, free: 1.641 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.556/1.556, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.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.2251/0.2251, allocations: 44.9 MB / 355.8 MB, free: 12.33 MB / 286.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.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_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 71.89 kB / 0.4885 GB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1225, allocations: 65.42 MB / 0.5524 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004098/0.1266, allocations: 2.389 MB / 0.5548 GB, free: 7.773 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1281, allocations: 0.6584 MB / 0.5554 GB, free: 7.109 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.1283, allocations: 4 kB / 0.5554 GB, free: 7.105 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.1284, allocations: 39.59 kB / 0.5554 GB, free: 7.066 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.1286, allocations: 71.33 kB / 0.5555 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003218/0.1289, allocations: 103.8 kB / 0.5556 GB, free: 6.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004324/0.1294, allocations: 343.2 kB / 0.5559 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.1296, allocations: 127.3 kB / 0.5561 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.13, allocations: 139.6 kB / 0.5562 GB, free: 6.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.1302, allocations: 155.4 kB / 0.5563 GB, free: 6.145 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.1303, allocations: 36 kB / 0.5564 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.1304, allocations: 39.94 kB / 0.5564 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-05/0.1304, allocations: 71.81 kB / 0.5565 GB, free: 6 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.1306, allocations: 151.3 kB / 0.5566 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.1311, allocations: 382.8 kB / 0.557 GB, free: 5.477 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1311, allocations: 0 / 0.557 GB, free: 5.477 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1311, allocations: 0 / 0.557 GB, free: 5.477 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1311, allocations: 3.938 kB / 0.557 GB, free: 5.473 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.001108/0.1322, allocations: 0.5925 MB / 0.5576 GB, free: 4.832 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.1323, allocations: 8.031 kB / 0.5576 GB, free: 4.824 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.602e-05/0.1323, allocations: 8.844 kB / 0.5576 GB, free: 4.816 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/0.1324, allocations: 70.72 kB / 0.5577 GB, free: 4.738 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.1327, allocations: 48.69 kB / 0.5577 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.1329, allocations: 200 kB / 0.5579 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.133, allocations: 25.03 kB / 0.5579 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.133, allocations: 36.38 kB / 0.558 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.1335, allocations: 278 kB / 0.5582 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1336, allocations: 0 / 0.5582 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.1336, allocations: 12 kB / 0.5582 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1336, allocations: 11.98 kB / 0.5582 GB, free: 4.098 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004458/0.134, allocations: 214.5 kB / 0.5584 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.136, allocations: 1.025 MB / 0.5594 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.116e-05/0.136, allocations: 26.58 kB / 0.5595 GB, free: 2.766 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.364e-05/0.1361, allocations: 32.84 kB / 0.5595 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.1361, allocations: 4 kB / 0.5595 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1361, allocations: 34.5 kB / 0.5595 GB, free: 2.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.1361, allocations: 0 / 0.5595 GB, free: 2.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000228/0.1364, allocations: 69.61 kB / 0.5596 GB, free: 2.609 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.1364, allocations: 55.41 kB / 0.5597 GB, free: 2.543 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.1368, allocations: 318.8 kB / 0.56 GB, free: 2.219 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.1369, allocations: 25.7 kB / 0.56 GB, free: 2.188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.137, allocations: 239.6 kB / 0.5602 GB, free: 1.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.1371, allocations: 11.95 kB / 0.5602 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1372, allocations: 61.64 kB / 0.5603 GB, free: 1.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1373, allocations: 326.8 kB / 0.5606 GB, free: 1.543 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.1375, allocations: 71.91 kB / 0.5607 GB, free: 1.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1377, allocations: 93.67 kB / 0.5608 GB, free: 1.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.1379, allocations: 121.7 kB / 0.5609 GB, free: 1.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1379, allocations: 0 / 0.5609 GB, free: 1.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004434/0.1383, allocations: 238 kB / 0.5611 GB, free: 1.012 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.1383, allocations: 7.938 kB / 0.5611 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1383, allocations: 0 / 0.5611 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1384, allocations: 4 kB / 0.5611 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.1387, allocations: 55.89 kB / 0.5612 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1387, allocations: 0 / 0.5612 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.139, allocations: 39.67 kB / 0.5612 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/0.139, allocations: 11.98 kB / 0.5612 GB, free: 0.8945 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.0001375/0.1391, allocations: 137.8 kB / 0.5613 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.1392, allocations: 23.8 kB / 0.5614 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.1392, allocations: 28.83 kB / 0.5614 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1392, allocations: 0 / 0.5614 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1392, allocations: 0 / 0.5614 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.1392, allocations: 3.938 kB / 0.5614 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007067/0.1399, allocations: 0.5149 MB / 0.5619 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.14, allocations: 0 / 0.5619 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.64e-05/0.14, allocations: 7.984 kB / 0.5619 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.14, allocations: 0 / 0.5619 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.14, allocations: 0 / 0.5619 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.14, allocations: 0 / 0.5619 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.14, allocations: 7.984 kB / 0.5619 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.1402, allocations: 97.91 kB / 0.562 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.1403, allocations: 101 kB / 0.5621 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.1403, allocations: 4 kB / 0.5621 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1404, allocations: 3.984 kB / 0.5621 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1404, allocations: 3.938 kB / 0.5621 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1404, allocations: 4 kB / 0.5621 GB, free: 15.85 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.1407, allocations: 222 kB / 0.5623 GB, free: 15.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1407, allocations: 0 / 0.5623 GB, free: 15.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.141, allocations: 63.92 kB / 0.5624 GB, free: 15.57 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.0004649/0.1415, allocations: 0.6327 MB / 0.563 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.1418, allocations: 107.8 kB / 0.5631 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1418, allocations: 4.094 kB / 0.5631 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.72e-05/0.1418, allocations: 8 kB / 0.5631 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.1421, allocations: 28.98 kB / 0.5632 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.1452, allocations: 2.237 MB / 0.5653 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.1456, allocations: 0.744 MB / 0.5661 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1457, allocations: 17.95 kB / 0.5661 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.1459, allocations: 75.41 kB / 0.5662 GB, free: 11.56 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1459, allocations: 4 kB / 0.5662 GB, free: 11.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.1682, allocations: 4.227 MB / 0.5703 GB, free: 7.457 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.852/9.021, allocations: 2.188 kB / 0.5703 GB, free: 7.457 MB / 430.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 12.266359917994123]