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.001376/0.001376, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001615/0.001615, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.2302/0.2302, allocations: 44.92 MB / 358.8 MB, free: 6.301 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="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: 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.002862/0.002862, allocations: 63.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.331, allocations: 65.47 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003666/0.3346, allocations: 2.4 MB / 0.5594 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.3359, allocations: 0.6701 MB / 0.56 GB, free: 4.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.336, allocations: 4 kB / 0.56 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.3361, allocations: 39.58 kB / 0.5601 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.3363, allocations: 75.27 kB / 0.5601 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.3366, allocations: 91.83 kB / 0.5602 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.3369, allocations: 347.2 kB / 0.5605 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.3372, allocations: 111.6 kB / 0.5607 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.3374, allocations: 155.5 kB / 0.5608 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.3377, allocations: 155.3 kB / 0.561 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.721e-05/0.3377, allocations: 32 kB / 0.561 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.41e-05/0.3378, allocations: 40 kB / 0.561 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.095e-05/0.3379, allocations: 63.83 kB / 0.5611 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.338, allocations: 163.2 kB / 0.5612 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.3385, allocations: 384.3 kB / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3385, allocations: 0 / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3385, allocations: 0 / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3385, allocations: 4 kB / 0.5616 GB, free: 3.062 MB / 398.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.0009359/0.3395, allocations: 0.5016 MB / 0.5621 GB, free: 2.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3395, allocations: 16.02 kB / 0.5621 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.247e-05/0.3396, allocations: 66.72 kB / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003025/0.3399, allocations: 56.67 kB / 0.5622 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.34, allocations: 140.9 kB / 0.5624 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.3401, allocations: 21.03 kB / 0.5624 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.3401, allocations: 32.38 kB / 0.5624 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.3406, allocations: 286.2 kB / 0.5627 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3406, allocations: 0 / 0.5627 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.3406, allocations: 15.94 kB / 0.5627 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3407, allocations: 8 kB / 0.5627 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.3411, allocations: 218.5 kB / 0.5629 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.3428, allocations: 0.9939 MB / 0.5639 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.455e-05/0.3429, allocations: 30.58 kB / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.527e-05/0.343, allocations: 24.86 kB / 0.5639 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/0.343, allocations: 0 / 0.5639 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.343, allocations: 34.56 kB / 0.564 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.343, allocations: 0 / 0.564 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002134/0.3432, allocations: 77.53 kB / 0.5641 GB, free: 420 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.3433, allocations: 51.41 kB / 0.5641 GB, free: 356 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.3436, allocations: 324.1 kB / 0.5644 GB, free: 28 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.3437, allocations: 25.7 kB / 0.5644 GB, free: 16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.3438, allocations: 239.4 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.3439, allocations: 12.02 kB / 0.5647 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.3439, allocations: 57.66 kB / 0.5647 GB, free: 15.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3441, allocations: 330.8 kB / 0.565 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.3442, allocations: 71.91 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3444, allocations: 85.67 kB / 0.5652 GB, free: 15.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.3446, allocations: 126.2 kB / 0.5653 GB, free: 15.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3446, allocations: 4 kB / 0.5653 GB, free: 15.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004054/0.345, allocations: 229.5 kB / 0.5655 GB, free: 14.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.345, allocations: 11.94 kB / 0.5655 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.345, allocations: 3.984 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.345, allocations: 0 / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.3453, allocations: 59.89 kB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3454, allocations: 4 kB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.3456, allocations: 31.73 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.3456, allocations: 8 kB / 0.5657 GB, free: 14.71 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.0001443/0.3457, allocations: 149.7 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.3458, allocations: 27.8 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.583e-05/0.3458, allocations: 13 kB / 0.5658 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3458, allocations: 7.922 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3458, allocations: 0 / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3459, allocations: 4 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006471/0.3465, allocations: 494.4 kB / 0.5663 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3465, allocations: 4 kB / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.854e-05/0.3465, allocations: 0 / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3465, allocations: 4 kB / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.3465, allocations: 0 / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.3465, allocations: 0 / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3465, allocations: 0 / 0.5663 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.3467, allocations: 109.8 kB / 0.5664 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.3467, allocations: 23.84 kB / 0.5664 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.3468, allocations: 0 / 0.5664 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3469, allocations: 8 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.3469, allocations: 3.938 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.3469, allocations: 0 / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.3472, allocations: 227.1 kB / 0.5667 GB, free: 13.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3472, allocations: 0 / 0.5667 GB, free: 13.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.3474, allocations: 63.89 kB / 0.5667 GB, free: 13.5 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.000436/0.3479, allocations: 0.6327 MB / 0.5674 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002368/0.3481, allocations: 99.91 kB / 0.5675 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3481, allocations: 3.938 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.414e-05/0.3481, allocations: 16.08 kB / 0.5675 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.3484, allocations: 23.16 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.3514, allocations: 2.237 MB / 0.5697 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.3518, allocations: 0.7402 MB / 0.5704 GB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001/0.3519, allocations: 25.92 kB / 0.5704 GB, free: 9.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.352, allocations: 75.41 kB / 0.5705 GB, free: 9.492 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.352, allocations: 0 / 0.5705 GB, free: 9.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03168/0.3837, allocations: 4.431 MB / 0.5748 GB, free: 5.199 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.58, allocations: 3.375 kB / 0.5748 GB, free: 5.199 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.499508487991989]