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.001855/0.001855, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002507/0.002507, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.519/1.519, allocations: 230.6 MB / 258.3 MB, free: 7.965 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.2362/0.2362, allocations: 46.96 MB / 361.7 MB, free: 4.055 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.002146/0.002146, allocations: 63.89 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3188, allocations: 66.03 MB / 0.5613 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003852/0.3227, allocations: 2.23 MB / 0.5635 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.324, allocations: 0.6273 MB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.3241, allocations: 4 kB / 0.5641 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.3242, allocations: 43.58 kB / 0.5642 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.3244, allocations: 67.34 kB / 0.5642 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.3248, allocations: 95.81 kB / 0.5643 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.3252, allocations: 347.2 kB / 0.5647 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003344/0.3255, allocations: 119.6 kB / 0.5648 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.3258, allocations: 143.6 kB / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.326, allocations: 159.3 kB / 0.5651 GB, free: 440 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.655e-05/0.3261, allocations: 32 kB / 0.5651 GB, free: 408 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001432/0.3262, allocations: 43.98 kB / 0.5651 GB, free: 364 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.3263, allocations: 67.77 kB / 0.5652 GB, free: 296 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.3264, allocations: 135.5 kB / 0.5653 GB, free: 160 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004942/0.3269, allocations: 384.4 kB / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3269, allocations: 0 / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3269, allocations: 0 / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3269, allocations: 0 / 0.5657 GB, free: 15.78 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.000947/0.3279, allocations: 0.5094 MB / 0.5662 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3279, allocations: 12.03 kB / 0.5662 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.544e-05/0.328, allocations: 8.844 kB / 0.5662 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.279e-05/0.328, allocations: 66.72 kB / 0.5663 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.3284, allocations: 48.69 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.3285, allocations: 146.2 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3286, allocations: 25.03 kB / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.3286, allocations: 32.38 kB / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.3292, allocations: 286 kB / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3292, allocations: 0 / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.3292, allocations: 12 kB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3292, allocations: 12 kB / 0.5668 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.3297, allocations: 222.4 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.3315, allocations: 0.9197 MB / 0.5679 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.781e-05/0.3316, allocations: 34.5 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.002e-05/0.3317, allocations: 24.92 kB / 0.568 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.3317, allocations: 0 / 0.568 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.3317, allocations: 34.5 kB / 0.568 GB, free: 13.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.3317, allocations: 0 / 0.568 GB, free: 13.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002328/0.332, allocations: 65.61 kB / 0.5681 GB, free: 13.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.332, allocations: 55.53 kB / 0.5681 GB, free: 13.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.3325, allocations: 328.1 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.3325, allocations: 25.7 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.3327, allocations: 235.5 kB / 0.5687 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3327, allocations: 15.88 kB / 0.5687 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.3329, allocations: 57.66 kB / 0.5688 GB, free: 12.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3331, allocations: 334.8 kB / 0.5691 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.3332, allocations: 63.97 kB / 0.5692 GB, free: 12.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.3334, allocations: 85.69 kB / 0.5692 GB, free: 11.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.3336, allocations: 122.2 kB / 0.5694 GB, free: 11.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3336, allocations: 4 kB / 0.5694 GB, free: 11.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004493/0.3341, allocations: 237.4 kB / 0.5696 GB, free: 11.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3341, allocations: 7.938 kB / 0.5696 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3341, allocations: 4 kB / 0.5696 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.3341, allocations: 0 / 0.5696 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.3344, allocations: 51.91 kB / 0.5696 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.3344, allocations: 4 kB / 0.5696 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.3347, allocations: 35.72 kB / 0.5697 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.3347, allocations: 12 kB / 0.5697 GB, free: 11.49 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.0001417/0.3349, allocations: 141.7 kB / 0.5698 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.3349, allocations: 27.8 kB / 0.5699 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.34e-05/0.335, allocations: 20.98 kB / 0.5699 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.335, allocations: 0 / 0.5699 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.335, allocations: 4 kB / 0.5699 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.335, allocations: 0 / 0.5699 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006838/0.3357, allocations: 474.4 kB / 0.5703 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3357, allocations: 0 / 0.5703 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.291e-05/0.3357, allocations: 4 kB / 0.5703 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3357, allocations: 4.062 kB / 0.5703 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.3357, allocations: 0 / 0.5703 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3357, allocations: 0 / 0.5703 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3357, allocations: 3.984 kB / 0.5703 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.3359, allocations: 97.83 kB / 0.5704 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.3359, allocations: 31.84 kB / 0.5705 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.336, allocations: 7.938 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.3361, allocations: 3.938 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.3361, allocations: 7.984 kB / 0.5705 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-06/0.3361, allocations: 0 / 0.5705 GB, free: 10.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.3364, allocations: 223.1 kB / 0.5707 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3364, allocations: 0 / 0.5707 GB, free: 10.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.3367, allocations: 63.89 kB / 0.5708 GB, free: 10.3 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.0004924/0.3372, allocations: 0.6327 MB / 0.5714 GB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002807/0.3375, allocations: 107.8 kB / 0.5715 GB, free: 9.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.3375, allocations: 0 / 0.5715 GB, free: 9.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.426e-05/0.3375, allocations: 8 kB / 0.5715 GB, free: 9.523 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.3379, allocations: 25.2 kB / 0.5715 GB, free: 9.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.3409, allocations: 2.235 MB / 0.5737 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.3411, allocations: 134.2 kB / 0.5738 GB, free: 7.012 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.3412, allocations: 17.95 kB / 0.5738 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.3413, allocations: 75.41 kB / 0.5739 GB, free: 6.918 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3413, allocations: 0 / 0.5739 GB, free: 6.918 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.3675, allocations: 4.538 MB / 0.5783 GB, free: 2.555 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.16, allocations: 15.12 kB / 0.5784 GB, free: 2.547 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: 15.209819275070913]