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.001328/0.001328, 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.001557/0.001557, allocations: 216.5 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8 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.2293/0.2293, allocations: 46.92 MB / 360.9 MB, free: 4.27 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.002041/0.002041, allocations: 63.91 kB / 0.4962 GB, free: 7.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 66.04 MB / 0.5606 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003787/0.3328, allocations: 2.393 MB / 0.563 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.3341, allocations: 0.6701 MB / 0.5636 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.354e-05/0.3341, allocations: 4 kB / 0.5636 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.236e-05/0.3342, allocations: 39.58 kB / 0.5637 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.3344, allocations: 75.28 kB / 0.5638 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.3347, allocations: 91.88 kB / 0.5638 GB, free: 1.188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.3351, allocations: 339.2 kB / 0.5642 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/0.3354, allocations: 123.6 kB / 0.5643 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.3356, allocations: 155.5 kB / 0.5644 GB, free: 0.582 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.3359, allocations: 155.4 kB / 0.5646 GB, free: 440 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.3359, allocations: 36 kB / 0.5646 GB, free: 404 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.178e-05/0.336, allocations: 32 kB / 0.5646 GB, free: 372 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.366e-05/0.3361, allocations: 71.83 kB / 0.5647 GB, free: 300 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.3362, allocations: 159.2 kB / 0.5649 GB, free: 140 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.3367, allocations: 380.5 kB / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3367, allocations: 0 / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3367, allocations: 0 / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3367, allocations: 4 kB / 0.5652 GB, free: 15.76 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.0009731/0.3377, allocations: 0.5094 MB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.3377, allocations: 8.031 kB / 0.5657 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.85e-05/0.3378, allocations: 74.66 kB / 0.5658 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.3382, allocations: 48.69 kB / 0.5659 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.3383, allocations: 146.2 kB / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.3384, allocations: 25.02 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.3384, allocations: 32.38 kB / 0.566 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005102/0.3389, allocations: 274.2 kB / 0.5663 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3389, allocations: 0 / 0.5663 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.339, allocations: 20 kB / 0.5663 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.339, allocations: 8 kB / 0.5663 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004372/0.3394, allocations: 214.5 kB / 0.5665 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.3413, allocations: 0.9937 MB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.387e-05/0.3413, allocations: 26.58 kB / 0.5675 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/0.3414, allocations: 24.92 kB / 0.5676 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.879e-06/0.3414, allocations: 0 / 0.5676 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.483e-05/0.3414, allocations: 30.56 kB / 0.5676 GB, free: 13.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.3414, allocations: 0 / 0.5676 GB, free: 13.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002124/0.3416, allocations: 85.47 kB / 0.5677 GB, free: 13.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.3417, allocations: 55.41 kB / 0.5677 GB, free: 13.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.3421, allocations: 316.1 kB / 0.568 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3421, allocations: 29.7 kB / 0.5681 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.3423, allocations: 235.5 kB / 0.5683 GB, free: 12.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.3423, allocations: 15.88 kB / 0.5683 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.452e-05/0.3424, allocations: 57.66 kB / 0.5683 GB, free: 12.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3426, allocations: 334.9 kB / 0.5687 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.3427, allocations: 63.97 kB / 0.5687 GB, free: 11.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.3429, allocations: 85.69 kB / 0.5688 GB, free: 11.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.3431, allocations: 122.1 kB / 0.5689 GB, free: 11.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3431, allocations: 0 / 0.5689 GB, free: 11.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004114/0.3435, allocations: 237.5 kB / 0.5692 GB, free: 11.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3435, allocations: 15.91 kB / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3435, allocations: 0 / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3435, allocations: 4 kB / 0.5692 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.3438, allocations: 55.91 kB / 0.5692 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.3438, allocations: 3.984 kB / 0.5692 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.3441, allocations: 35.73 kB / 0.5693 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3441, allocations: 8 kB / 0.5693 GB, free: 11.41 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.0001302/0.3442, allocations: 137.7 kB / 0.5694 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.3443, allocations: 27.78 kB / 0.5694 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.08e-05/0.3443, allocations: 28.98 kB / 0.5695 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3443, allocations: 3.938 kB / 0.5695 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3443, allocations: 0 / 0.5695 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3443, allocations: 0 / 0.5695 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000641/0.345, allocations: 0.4905 MB / 0.5699 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.345, allocations: 0 / 0.5699 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.169e-05/0.345, allocations: 4 kB / 0.5699 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.345, allocations: 4.062 kB / 0.5699 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.345, allocations: 0 / 0.5699 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.345, allocations: 0 / 0.5699 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.345, allocations: 4 kB / 0.57 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.3451, allocations: 97.77 kB / 0.57 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.3452, allocations: 27.84 kB / 0.5701 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.3452, allocations: 0 / 0.5701 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.3453, allocations: 8.031 kB / 0.5701 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3454, allocations: 4 kB / 0.5701 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-06/0.3454, allocations: 0 / 0.5701 GB, free: 10.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.3456, allocations: 223.1 kB / 0.5703 GB, free: 10.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3456, allocations: 0 / 0.5703 GB, free: 10.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.3459, allocations: 63.89 kB / 0.5704 GB, free: 10.2 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.0004587/0.3464, allocations: 0.6365 MB / 0.571 GB, free: 9.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.3466, allocations: 99.91 kB / 0.5711 GB, free: 9.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3466, allocations: 0 / 0.5711 GB, free: 9.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.37e-05/0.3466, allocations: 12 kB / 0.5711 GB, free: 9.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.347, allocations: 35.77 kB / 0.5711 GB, free: 9.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.3498, allocations: 2.225 MB / 0.5733 GB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.3501, allocations: 0.7401 MB / 0.574 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.3502, allocations: 29.92 kB / 0.574 GB, free: 6.273 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3504, allocations: 75.41 kB / 0.5741 GB, free: 6.199 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3504, allocations: 4 kB / 0.5741 GB, free: 6.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.3841, allocations: 4.427 MB / 0.5784 GB, free: 1.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 8 kB / 0.5784 GB, free: 1.895 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.631328401854262]