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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002003/0.002003, allocations: 113.4 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002059/0.002059, allocations: 201.9 kB / 18.77 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.995/1.995, allocations: 222.9 MB / 242.4 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.425/0.425, allocations: 44.17 MB / 336.8 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 63.7 kB / 408.4 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1491, allocations: 60.82 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.00468/0.1538, allocations: 2.406 MB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.1553, allocations: 0.6117 MB / 472.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/0.1557, allocations: 4 kB / 472.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.1559, allocations: 27.78 kB / 472.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003568/0.1563, allocations: 67.45 kB / 472.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.1566, allocations: 71.94 kB / 472.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005195/0.1572, allocations: 327.2 kB / 472.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.1575, allocations: 127.9 kB / 472.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.1578, allocations: 131.6 kB / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.1582, allocations: 147.4 kB / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.1583, allocations: 20 kB / 473.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.124e-05/0.1583, allocations: 24 kB / 473.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.1584, allocations: 63.77 kB / 473.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.1586, allocations: 147.2 kB / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.1589, allocations: 287.5 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1589, allocations: 0 / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.159, allocations: 3.938 kB / 473.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.159, allocations: 4 kB / 473.6 MB, free: 10.36 MB / 350.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.001141/0.1601, allocations: 0.5734 MB / 474.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1602, allocations: 8.031 kB / 474.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.526e-05/0.1603, allocations: 36.56 kB / 474.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.1605, allocations: 211.9 kB / 474.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.1606, allocations: 25.22 kB / 474.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.252e-05/0.1607, allocations: 28.38 kB / 474.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.1613, allocations: 282.2 kB / 474.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.1614, allocations: 0 / 474.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.1614, allocations: 19.98 kB / 474.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1614, allocations: 8 kB / 474.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.1619, allocations: 218.5 kB / 475 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.1638, allocations: 1.017 MB / 476 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.164, allocations: 26.58 kB / 476.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.37e-05/0.1641, allocations: 32.91 kB / 476.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.1641, allocations: 0 / 476.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.1641, allocations: 34.5 kB / 476.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.1641, allocations: 0 / 476.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002426/0.1644, allocations: 81.3 kB / 476.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.1644, allocations: 55.41 kB / 476.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.1649, allocations: 318.8 kB / 476.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1649, allocations: 29.83 kB / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.165, allocations: 230.8 kB / 476.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.1651, allocations: 15.89 kB / 476.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1652, allocations: 57.55 kB / 476.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1653, allocations: 330.8 kB / 477.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.1655, allocations: 63.97 kB / 477.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1657, allocations: 91.44 kB / 477.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.1659, allocations: 138.1 kB / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1659, allocations: 0 / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000439/0.1664, allocations: 225.4 kB / 477.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1664, allocations: 11.88 kB / 477.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1664, allocations: 0 / 477.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1665, allocations: 4 kB / 477.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003362/0.1668, allocations: 55.95 kB / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.1668, allocations: 0 / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.1671, allocations: 43.56 kB / 477.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.1671, allocations: 11.98 kB / 477.8 MB, free: 5.891 MB / 350.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.0001615/0.1673, allocations: 133.8 kB / 478 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-05/0.1674, allocations: 19.75 kB / 478 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.1674, allocations: 28.84 kB / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1674, allocations: 0 / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1675, allocations: 0 / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1675, allocations: 0 / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007318/0.1682, allocations: 0.511 MB / 478.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.1682, allocations: 0 / 478.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.241e-05/0.1683, allocations: 4 kB / 478.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1683, allocations: 0 / 478.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.1683, allocations: 0 / 478.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.929e-06/0.1683, allocations: 8 kB / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.1683, allocations: 7.875 kB / 478.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.1685, allocations: 101.8 kB / 478.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.1686, allocations: 104.8 kB / 478.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.1686, allocations: 0 / 478.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.1688, allocations: 3.984 kB / 478.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.1688, allocations: 4 kB / 478.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.1688, allocations: 0 / 478.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002883/0.1691, allocations: 218 kB / 479 MB, free: 4.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1691, allocations: 4.031 kB / 479 MB, free: 4.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.1694, allocations: 67.84 kB / 479.1 MB, free: 4.574 MB / 350.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.0001172/0.1696, allocations: 99.77 kB / 479.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00029/0.1699, allocations: 111.8 kB / 479.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1699, allocations: 0 / 479.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.156e-05/0.1699, allocations: 12 kB / 479.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.1703, allocations: 32.94 kB / 479.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009264/0.1713, allocations: 0.495 MB / 479.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.1717, allocations: 0.7443 MB / 480.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.546e-05/0.1718, allocations: 19.42 kB / 480.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1718, allocations: 4 kB / 480.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of Templates: time 0.006127/0.1779, allocations: 2.683 MB / 483.2 MB, free: 312 kB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) 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) Reference file matches