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.001398/0.001398, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001661/0.001661, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.2421/0.2421, allocations: 46.93 MB / 361.6 MB, free: 4.266 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.001952/0.001952, allocations: 67.89 kB / 0.4969 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3554, allocations: 66.03 MB / 0.5614 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004558/0.36, allocations: 2.387 MB / 0.5637 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.3618, allocations: 0.6701 MB / 0.5644 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.3619, allocations: 4 kB / 0.5644 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.3621, allocations: 47.52 kB / 0.5645 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.3623, allocations: 71.33 kB / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003958/0.3627, allocations: 95.83 kB / 0.5646 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005088/0.3632, allocations: 339.2 kB / 0.5649 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.3636, allocations: 119.6 kB / 0.565 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.3639, allocations: 151.5 kB / 0.5652 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003322/0.3643, allocations: 151.4 kB / 0.5653 GB, free: 464 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.165e-05/0.3643, allocations: 36 kB / 0.5654 GB, free: 428 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3644, allocations: 32 kB / 0.5654 GB, free: 396 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3645, allocations: 75.81 kB / 0.5655 GB, free: 320 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.3648, allocations: 159.2 kB / 0.5656 GB, free: 160 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006521/0.3654, allocations: 380.4 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3654, allocations: 4 kB / 0.566 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3654, allocations: 3.938 kB / 0.566 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3654, allocations: 0 / 0.566 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.001365/0.3668, allocations: 0.5133 MB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/0.3669, allocations: 8.031 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.768e-05/0.3669, allocations: 8.844 kB / 0.5665 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.367, allocations: 70.72 kB / 0.5666 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004841/0.3675, allocations: 48.69 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.3677, allocations: 142.2 kB / 0.5668 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.3678, allocations: 21.03 kB / 0.5668 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.66e-05/0.3678, allocations: 36.38 kB / 0.5668 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007782/0.3686, allocations: 286 kB / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3686, allocations: 0 / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.3687, allocations: 12 kB / 0.5671 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3687, allocations: 8 kB / 0.5671 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006826/0.3694, allocations: 218.5 kB / 0.5673 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/0.3721, allocations: 0.9861 MB / 0.5683 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.3722, allocations: 26.58 kB / 0.5683 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.848e-05/0.3723, allocations: 24.92 kB / 0.5683 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.3723, allocations: 4 kB / 0.5683 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.3723, allocations: 38.44 kB / 0.5684 GB, free: 13.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.753e-06/0.3723, allocations: 0 / 0.5684 GB, free: 13.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003615/0.3727, allocations: 73.59 kB / 0.5684 GB, free: 13.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.3728, allocations: 55.41 kB / 0.5685 GB, free: 13.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006326/0.3734, allocations: 324.1 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.3734, allocations: 25.7 kB / 0.5688 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.3737, allocations: 235.6 kB / 0.5691 GB, free: 12.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.3737, allocations: 19.89 kB / 0.5691 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.3739, allocations: 57.64 kB / 0.5691 GB, free: 12.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.3741, allocations: 326.8 kB / 0.5694 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.3743, allocations: 63.97 kB / 0.5695 GB, free: 12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.3746, allocations: 93.61 kB / 0.5696 GB, free: 11.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.375, allocations: 122.2 kB / 0.5697 GB, free: 11.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.375, allocations: 0 / 0.5697 GB, free: 11.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007197/0.3757, allocations: 237.5 kB / 0.5699 GB, free: 11.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3757, allocations: 7.938 kB / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3757, allocations: 0 / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.3757, allocations: 4 kB / 0.5699 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.3762, allocations: 63.89 kB / 0.57 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.3762, allocations: 0 / 0.57 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.3765, allocations: 35.73 kB / 0.57 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3765, allocations: 4 kB / 0.57 GB, free: 11.42 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.0001639/0.3767, allocations: 141.8 kB / 0.5702 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.709e-05/0.3767, allocations: 35.61 kB / 0.5702 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.143e-05/0.3768, allocations: 24.98 kB / 0.5702 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3768, allocations: 0 / 0.5702 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3768, allocations: 0 / 0.5702 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-06/0.3768, allocations: 0 / 0.5702 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.3776, allocations: 498.4 kB / 0.5707 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3776, allocations: 0 / 0.5707 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-05/0.3776, allocations: 7.938 kB / 0.5707 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.874e-06/0.3776, allocations: 3.984 kB / 0.5707 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.3776, allocations: 0 / 0.5707 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3776, allocations: 0 / 0.5707 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3776, allocations: 4 kB / 0.5707 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.3778, allocations: 97.89 kB / 0.5708 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.3778, allocations: 31.84 kB / 0.5708 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.3778, allocations: 0 / 0.5708 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.378, allocations: 0 / 0.5708 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.378, allocations: 4 kB / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.378, allocations: 0 / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002681/0.3783, allocations: 227 kB / 0.5711 GB, free: 10.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3783, allocations: 0 / 0.5711 GB, free: 10.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.3785, allocations: 63.89 kB / 0.5711 GB, free: 10.21 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.0005117/0.379, allocations: 0.6327 MB / 0.5717 GB, free: 9.547 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000263/0.3793, allocations: 99.91 kB / 0.5718 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3793, allocations: 96 / 0.5718 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.004e-05/0.3793, allocations: 23.92 kB / 0.5719 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.0003486/0.3797, allocations: 16.98 kB / 0.5719 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.3829, allocations: 2.235 MB / 0.5741 GB, free: 7.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.3833, allocations: 0.7401 MB / 0.5748 GB, free: 6.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.3834, allocations: 21.95 kB / 0.5748 GB, free: 6.285 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3835, allocations: 71.41 kB / 0.5749 GB, free: 6.215 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3835, allocations: 3.938 kB / 0.5749 GB, free: 6.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.4085, allocations: 4.464 MB / 0.5792 GB, free: 1.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.88, allocations: 16.61 kB / 0.5793 GB, free: 1.887 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.854486319993157]