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.001399/0.001399, allocations: 105.1 kB / 21.22 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.001454/0.001454, allocations: 218.9 kB / 24.52 MB, free: 3.949 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.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.225/0.225, allocations: 44.93 MB / 359.6 MB, free: 6.074 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.002415/0.002415, allocations: 67.89 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3417, allocations: 65.46 MB / 0.5577 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003877/0.3455, allocations: 2.225 MB / 0.5599 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.3469, allocations: 0.6272 MB / 0.5605 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.347, allocations: 8 kB / 0.5605 GB, free: 4.691 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.3471, allocations: 43.58 kB / 0.5606 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.3473, allocations: 67.33 kB / 0.5606 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.3476, allocations: 95.88 kB / 0.5607 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.348, allocations: 339.2 kB / 0.561 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.3483, allocations: 119.6 kB / 0.5611 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003093/0.3486, allocations: 155.5 kB / 0.5613 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.3488, allocations: 155.4 kB / 0.5614 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.3488, allocations: 32 kB / 0.5615 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.992e-05/0.3489, allocations: 40 kB / 0.5615 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.38e-05/0.349, allocations: 67.83 kB / 0.5616 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.3491, allocations: 135.4 kB / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.3496, allocations: 384.3 kB / 0.5621 GB, free: 3.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3496, allocations: 0 / 0.5621 GB, free: 3.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3496, allocations: 0 / 0.5621 GB, free: 3.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3496, allocations: 0 / 0.5621 GB, free: 3.09 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.0009308/0.3505, allocations: 0.5188 MB / 0.5626 GB, free: 2.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3506, allocations: 8.031 kB / 0.5626 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.051e-05/0.3506, allocations: 8.844 kB / 0.5626 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.439e-05/0.3507, allocations: 70.72 kB / 0.5627 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.351, allocations: 48.69 kB / 0.5627 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.3511, allocations: 138.2 kB / 0.5628 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.3512, allocations: 28.97 kB / 0.5629 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.3512, allocations: 36.31 kB / 0.5629 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.3518, allocations: 286 kB / 0.5632 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3518, allocations: 0 / 0.5632 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.3518, allocations: 20 kB / 0.5632 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.3518, allocations: 8 kB / 0.5632 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.3523, allocations: 210.5 kB / 0.5634 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.3541, allocations: 0.9237 MB / 0.5643 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.656e-05/0.3542, allocations: 26.58 kB / 0.5643 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.3542, allocations: 20.92 kB / 0.5644 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3542, allocations: 4 kB / 0.5644 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.3542, allocations: 34.5 kB / 0.5644 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.3543, allocations: 0 / 0.5644 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002239/0.3545, allocations: 77.53 kB / 0.5645 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.3545, allocations: 55.41 kB / 0.5645 GB, free: 436 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.3549, allocations: 320.1 kB / 0.5648 GB, free: 112 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3549, allocations: 29.64 kB / 0.5648 GB, free: 76 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.3551, allocations: 243.4 kB / 0.5651 GB, free: 15.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3551, allocations: 11.89 kB / 0.5651 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3552, allocations: 57.66 kB / 0.5651 GB, free: 15.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3554, allocations: 330.8 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.3555, allocations: 63.97 kB / 0.5655 GB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.3557, allocations: 89.67 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/0.3559, allocations: 126.3 kB / 0.5657 GB, free: 15.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3559, allocations: 0 / 0.5657 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004361/0.3563, allocations: 233.5 kB / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3564, allocations: 10.59 kB / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3564, allocations: 0 / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.3564, allocations: 4 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.3567, allocations: 55.89 kB / 0.566 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3567, allocations: 3.984 kB / 0.566 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.3569, allocations: 35.73 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.357, allocations: 12.03 kB / 0.5661 GB, free: 14.79 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.0001404/0.3571, allocations: 137.7 kB / 0.5662 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.3572, allocations: 27.78 kB / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.3572, allocations: 21 kB / 0.5662 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3572, allocations: 0 / 0.5662 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3572, allocations: 3.984 kB / 0.5663 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3572, allocations: 0 / 0.5663 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006245/0.3578, allocations: 470.4 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3578, allocations: 3.984 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.013e-05/0.3579, allocations: 8.062 kB / 0.5667 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3579, allocations: 0 / 0.5667 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.3579, allocations: 7.938 kB / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3579, allocations: 0 / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3579, allocations: 0 / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.358, allocations: 101.8 kB / 0.5668 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.3581, allocations: 31.83 kB / 0.5668 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.3581, allocations: 4 kB / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3582, allocations: 0 / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.312e-05/0.3582, allocations: 3.938 kB / 0.5669 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.3583, allocations: 12.02 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.3585, allocations: 223.1 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3585, allocations: 0 / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.3588, allocations: 63.89 kB / 0.5671 GB, free: 13.6 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.3592, allocations: 0.6365 MB / 0.5678 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.3595, allocations: 95.91 kB / 0.5679 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3595, allocations: 0 / 0.5679 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.605e-05/0.3595, allocations: 12.16 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.3598, allocations: 25.03 kB / 0.5679 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.3627, allocations: 2.227 MB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.3629, allocations: 134.2 kB / 0.5702 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.363, allocations: 25.94 kB / 0.5702 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3631, allocations: 71.41 kB / 0.5703 GB, free: 10.22 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3631, allocations: 0 / 0.5703 GB, free: 10.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.3885, allocations: 4.549 MB / 0.5747 GB, free: 5.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.08, allocations: 7.938 kB / 0.5747 GB, free: 5.844 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: 15.085266385925934]