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.001171/0.001171, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008682/0.0008682, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9153/0.9153, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2304/0.2304, allocations: 32.79 MB / 293.5 MB, free: 1.23 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.906e-06/2.906e-06, allocations: 0 / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.781e-05, allocations: 6.281 kB / 439.6 MB, free: 4.246 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002924/0.002952, allocations: 2.224 MB / 441.8 MB, free: 2.008 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.004176, allocations: 0.6389 MB / 442.4 MB, free: 1.363 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.004276, allocations: 4 kB / 442.5 MB, free: 1.359 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.219e-05/0.004349, allocations: 43.52 kB / 442.5 MB, free: 1.316 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.004503, allocations: 71.28 kB / 442.6 MB, free: 1.246 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.004775, allocations: 91.86 kB / 442.7 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.005016, allocations: 355 kB / 443 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.005222, allocations: 111.8 kB / 443.1 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.005495, allocations: 223.5 kB / 443.3 MB, free: 484 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.005623, allocations: 111.7 kB / 443.4 MB, free: 372 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.313e-05/0.005656, allocations: 32 kB / 443.5 MB, free: 340 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.005714, allocations: 36 kB / 443.5 MB, free: 304 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.921e-05/0.005754, allocations: 75.72 kB / 443.6 MB, free: 228 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.057e-05/0.005824, allocations: 111.8 kB / 443.7 MB, free: 116 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1692/0.175, allocations: 386.3 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.175, allocations: 0 / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.175, allocations: 0 / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.175, allocations: 2.469 kB / 444.1 MB, free: 44.12 MB / 410.7 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.000542/0.1756, allocations: 0.5043 MB / 444.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1756, allocations: 13.97 kB / 444.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.027e-05/0.1756, allocations: 66.56 kB / 444.6 MB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.1758, allocations: 45.73 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.419e-05/0.1759, allocations: 152.7 kB / 444.8 MB, free: 43.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.1759, allocations: 30.12 kB / 444.9 MB, free: 43.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1759, allocations: 25.94 kB / 444.9 MB, free: 43.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.1762, allocations: 278.4 kB / 445.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1762, allocations: 192 / 445.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1762, allocations: 18.25 kB / 445.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.1762, allocations: 12.78 kB / 445.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.1764, allocations: 210.8 kB / 445.4 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009092/0.1773, allocations: 0.909 MB / 446.3 MB, free: 43.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.323e-05/0.1774, allocations: 29.61 kB / 446.3 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.666e-05/0.1774, allocations: 26.17 kB / 446.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.1774, allocations: 2.875 kB / 446.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.042e-05/0.1775, allocations: 30.56 kB / 446.4 MB, free: 43.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1775, allocations: 3.031 kB / 446.4 MB, free: 43.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001447/0.1776, allocations: 77.3 kB / 446.5 MB, free: 43.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.698e-05/0.1776, allocations: 57.97 kB / 446.5 MB, free: 43.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.1778, allocations: 329.7 kB / 446.9 MB, free: 42.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.38e-06/0.1778, allocations: 31.11 kB / 446.9 MB, free: 42.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.1779, allocations: 238.5 kB / 447.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-06/0.1779, allocations: 13.94 kB / 447.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.1779, allocations: 52.42 kB / 447.2 MB, free: 42.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.838e-05/0.178, allocations: 328 kB / 447.5 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.927e-05/0.178, allocations: 63.2 kB / 447.6 MB, free: 42.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.744e-05/0.1781, allocations: 92.41 kB / 447.7 MB, free: 42.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.1782, allocations: 127.3 kB / 447.8 MB, free: 42.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1782, allocations: 0.8438 kB / 447.8 MB, free: 42.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001997/0.1784, allocations: 232.8 kB / 448 MB, free: 42.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.1784, allocations: 5.875 kB / 448 MB, free: 42.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1784, allocations: 0.5 kB / 448 MB, free: 42.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1784, allocations: 5.062 kB / 448 MB, free: 42.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.1786, allocations: 58.81 kB / 448.1 MB, free: 42.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.1786, allocations: 3.938 kB / 448.1 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.1787, allocations: 46.16 kB / 448.1 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.1787, allocations: 5.688 kB / 448.1 MB, free: 42.21 MB / 410.7 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 5.847e-05/0.1787, allocations: 138 kB / 448.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.1788, allocations: 22.98 kB / 448.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.1788, allocations: 21.81 kB / 448.3 MB, free: 42.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1788, allocations: 0 / 448.3 MB, free: 42.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1788, allocations: 9.141 kB / 448.3 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1788, allocations: 3.234 kB / 448.3 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.1791, allocations: 466.5 kB / 448.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1791, allocations: 0 / 448.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.123e-05/0.1791, allocations: 8.953 kB / 448.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1791, allocations: 3.938 kB / 448.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.1791, allocations: 10.08 kB / 448.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.1791, allocations: 0 / 448.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1791, allocations: 0 / 448.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.855e-05/0.1791, allocations: 95.12 kB / 448.9 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.1792, allocations: 28.94 kB / 448.9 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.1792, allocations: 2.812 kB / 448.9 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.676e-05/0.1792, allocations: 0 / 448.9 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.1793, allocations: 6 kB / 448.9 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-06/0.1793, allocations: 0 / 448.9 MB, free: 41.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1794, allocations: 227 kB / 449.2 MB, free: 41.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1794, allocations: 4.031 kB / 449.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001613/0.1795, allocations: 67.44 kB / 449.2 MB, free: 41.38 MB / 410.7 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.0001379/0.1797, allocations: 0.6272 MB / 449.9 MB, free: 40.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1798, allocations: 101.3 kB / 449.9 MB, free: 40.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.1798, allocations: 3.922 kB / 450 MB, free: 40.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.338e-05/0.1798, allocations: 9.562 kB / 450 MB, free: 40.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.18, allocations: 26.45 kB / 450 MB, free: 40.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.1813, allocations: 2.237 MB / 452.2 MB, free: 39.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.392e-05/0.1814, allocations: 133 kB / 452.4 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.731e-05/0.1814, allocations: 24.77 kB / 452.4 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.015e-05/0.1815, allocations: 80.75 kB / 452.5 MB, free: 39 MB / 410.7 MB Notification: Performance of SimCode: time 7.02e-07/0.1815, allocations: 0 / 452.5 MB, free: 39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.1959, allocations: 4.964 MB / 457.4 MB, free: 37.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.68/6.876, allocations: 10.12 kB / 457.4 MB, free: 37.79 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins/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: 8.826790071092546]