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.001337/0.001337, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001622/0.001622, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.52/1.52, allocations: 230.6 MB / 258.3 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.2328/0.2328, allocations: 44.9 MB / 359.6 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="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.002308/0.002308, allocations: 63.91 kB / 0.4939 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.338, allocations: 65.47 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004071/0.3421, allocations: 2.401 MB / 0.5601 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3436, allocations: 0.67 MB / 0.5608 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.3437, allocations: 4 kB / 0.5608 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.3438, allocations: 39.58 kB / 0.5608 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.344, allocations: 67.34 kB / 0.5609 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.3443, allocations: 95.88 kB / 0.561 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.3447, allocations: 339.2 kB / 0.5613 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.345, allocations: 123.6 kB / 0.5614 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002962/0.3452, allocations: 151.5 kB / 0.5616 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.3455, allocations: 151.4 kB / 0.5617 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.3455, allocations: 36 kB / 0.5617 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.18e-05/0.3456, allocations: 39.98 kB / 0.5618 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.458e-05/0.3457, allocations: 71.81 kB / 0.5619 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.3459, allocations: 155.3 kB / 0.562 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004837/0.3464, allocations: 380.3 kB / 0.5624 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3464, allocations: 0 / 0.5624 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3464, allocations: 0 / 0.5624 GB, free: 3.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3464, allocations: 0 / 0.5624 GB, free: 3.098 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.0009119/0.3473, allocations: 0.5133 MB / 0.5629 GB, free: 2.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3473, allocations: 8.031 kB / 0.5629 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.268e-05/0.3473, allocations: 8.844 kB / 0.5629 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.304e-05/0.3474, allocations: 74.66 kB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.3477, allocations: 52.62 kB / 0.563 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.3479, allocations: 146.2 kB / 0.5631 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.3479, allocations: 25.03 kB / 0.5632 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.788e-05/0.348, allocations: 36.34 kB / 0.5632 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/0.3485, allocations: 282 kB / 0.5635 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.3485, allocations: 0 / 0.5635 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.3485, allocations: 16 kB / 0.5635 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3485, allocations: 11.94 kB / 0.5635 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.3489, allocations: 214.5 kB / 0.5637 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.3507, allocations: 0.9783 MB / 0.5647 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.258e-05/0.3508, allocations: 30.58 kB / 0.5647 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.486e-05/0.3509, allocations: 28.91 kB / 0.5647 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.3509, allocations: 0 / 0.5647 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.3509, allocations: 42.5 kB / 0.5648 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3509, allocations: 0 / 0.5648 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002106/0.3511, allocations: 69.55 kB / 0.5648 GB, free: 440 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.3512, allocations: 51.41 kB / 0.5649 GB, free: 376 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.3515, allocations: 328.2 kB / 0.5652 GB, free: 44 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.3516, allocations: 25.7 kB / 0.5652 GB, free: 12 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.3517, allocations: 235.5 kB / 0.5654 GB, free: 15.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.3518, allocations: 19.88 kB / 0.5655 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.603e-05/0.3519, allocations: 53.66 kB / 0.5655 GB, free: 15.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.352, allocations: 330.8 kB / 0.5658 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3521, allocations: 59.98 kB / 0.5659 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.3523, allocations: 89.67 kB / 0.566 GB, free: 15.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.3525, allocations: 130.1 kB / 0.5661 GB, free: 15.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3525, allocations: 0 / 0.5661 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004659/0.353, allocations: 237.5 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.353, allocations: 7.938 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.353, allocations: 0 / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.353, allocations: 7.938 kB / 0.5663 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.3533, allocations: 51.91 kB / 0.5664 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3534, allocations: 4.031 kB / 0.5664 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.3536, allocations: 39.72 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.3536, allocations: 4 kB / 0.5664 GB, free: 14.73 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.0001324/0.3538, allocations: 141.7 kB / 0.5666 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-05/0.3538, allocations: 27.78 kB / 0.5666 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.769e-05/0.3539, allocations: 24.98 kB / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3539, allocations: 0 / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3539, allocations: 0 / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.3539, allocations: 0 / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000704/0.3546, allocations: 498.3 kB / 0.5671 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3546, allocations: 3.938 kB / 0.5671 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.3546, allocations: 4 kB / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3547, allocations: 3.984 kB / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3547, allocations: 0 / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3547, allocations: 4 kB / 0.5671 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3547, allocations: 0 / 0.5671 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/0.3548, allocations: 101.8 kB / 0.5672 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.839e-05/0.3549, allocations: 31.84 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.3549, allocations: 0 / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.355, allocations: 3.984 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.88e-05/0.355, allocations: 4 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.355, allocations: 0 / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.3553, allocations: 223.1 kB / 0.5674 GB, free: 13.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3553, allocations: 0 / 0.5674 GB, free: 13.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.3556, allocations: 63.89 kB / 0.5675 GB, free: 13.52 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.000424/0.356, allocations: 0.6326 MB / 0.5681 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002435/0.3562, allocations: 107.9 kB / 0.5682 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3562, allocations: 0 / 0.5682 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.515e-05/0.3563, allocations: 12 kB / 0.5682 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.3566, allocations: 20.97 kB / 0.5683 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.3594, allocations: 2.235 MB / 0.5704 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3598, allocations: 0.744 MB / 0.5712 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.3599, allocations: 29.86 kB / 0.5712 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3601, allocations: 71.42 kB / 0.5713 GB, free: 9.512 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3601, allocations: 0 / 0.5713 GB, free: 9.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.3851, allocations: 4.466 MB / 0.5756 GB, free: 5.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 11.91 kB / 0.5756 GB, free: 5.191 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.928600912971888]