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.001057/0.001057, allocations: 103.3 kB / 18.4 MB, free: 4.57 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.001066/0.001066, allocations: 188 kB / 19.34 MB, free: 3.641 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.412/1.412, allocations: 222.9 MB / 243 MB, free: 15.14 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.2209/0.2209, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 65.25 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1429, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004068/0.147, allocations: 2.359 MB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1485, allocations: 0.6117 MB / 473.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.1486, allocations: 4 kB / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.1487, allocations: 43.52 kB / 473.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.149, allocations: 67.34 kB / 473.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.1494, allocations: 91.88 kB / 473.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.1498, allocations: 343.2 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003592/0.1501, allocations: 159.4 kB / 474.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.1504, allocations: 135.6 kB / 474.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.1506, allocations: 155.4 kB / 474.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.1507, allocations: 35.94 kB / 474.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.964e-05/0.1508, allocations: 36 kB / 474.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.122e-05/0.1509, allocations: 79.73 kB / 474.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.151, allocations: 159.2 kB / 475 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.1514, allocations: 374.7 kB / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1514, allocations: 0 / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1514, allocations: 0 / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1514, allocations: 0 / 475.3 MB, free: 9.004 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.00105/0.1525, allocations: 0.5772 MB / 475.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1525, allocations: 8.031 kB / 475.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.295e-05/0.1526, allocations: 32.56 kB / 475.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.1528, allocations: 203.9 kB / 476.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.1529, allocations: 25.03 kB / 476.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.1529, allocations: 32.38 kB / 476.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004969/0.1534, allocations: 278.4 kB / 476.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1535, allocations: 0 / 476.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1535, allocations: 12 kB / 476.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1535, allocations: 8 kB / 476.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004221/0.154, allocations: 218.5 kB / 476.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1558, allocations: 1.001 MB / 477.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.134e-05/0.1558, allocations: 30.58 kB / 477.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.208e-05/0.1559, allocations: 28.91 kB / 477.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.1559, allocations: 4 kB / 477.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.156, allocations: 38.56 kB / 477.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.323e-06/0.156, allocations: 3.984 kB / 477.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002634/0.1563, allocations: 81.23 kB / 477.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.1563, allocations: 51.41 kB / 477.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.1567, allocations: 322.8 kB / 478.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.1567, allocations: 25.7 kB / 478.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.1569, allocations: 238.9 kB / 478.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.1569, allocations: 11.89 kB / 478.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.789e-05/0.157, allocations: 53.61 kB / 478.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1571, allocations: 334.8 kB / 478.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.1573, allocations: 59.98 kB / 479 MB, free: 5.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.1574, allocations: 89.67 kB / 479 MB, free: 5.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.1576, allocations: 131.4 kB / 479.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1576, allocations: 0 / 479.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004421/0.1581, allocations: 233.3 kB / 479.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.1581, allocations: 7.438 kB / 479.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1581, allocations: 11.92 kB / 479.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1582, allocations: 0 / 479.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.1584, allocations: 47.97 kB / 479.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.1585, allocations: 11.88 kB / 479.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.1587, allocations: 35.53 kB / 479.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.1587, allocations: 12.02 kB / 479.5 MB, free: 4.559 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.0001304/0.1589, allocations: 133.8 kB / 479.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.1589, allocations: 19.81 kB / 479.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.411e-05/0.159, allocations: 28.78 kB / 479.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.159, allocations: 0 / 479.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.159, allocations: 0 / 479.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.159, allocations: 0 / 479.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.1596, allocations: 0.511 MB / 480.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1597, allocations: 0 / 480.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.107e-05/0.1597, allocations: 4 kB / 480.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1597, allocations: 0 / 480.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1597, allocations: 7.938 kB / 480.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1597, allocations: 0 / 480.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1597, allocations: 3.984 kB / 480.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.1599, allocations: 101.8 kB / 480.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.16, allocations: 104.8 kB / 480.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.16, allocations: 0 / 480.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.847e-05/0.1601, allocations: 0 / 480.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.1e-05/0.1602, allocations: 7.984 kB / 480.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.1602, allocations: 0 / 480.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.1604, allocations: 218 kB / 480.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1604, allocations: 0 / 480.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002678/0.1607, allocations: 63.84 kB / 480.7 MB, free: 3.258 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.00011/0.1608, allocations: 111.2 kB / 480.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000256/0.1611, allocations: 107.9 kB / 480.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1611, allocations: 0 / 480.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.274e-05/0.1611, allocations: 8 kB / 480.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.1614, allocations: 32.81 kB / 481 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000664/0.1621, allocations: 375.6 kB / 481.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.1624, allocations: 0.744 MB / 482.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.846e-05/0.1625, allocations: 29.92 kB / 482.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.1626, allocations: 15.44 kB / 482.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1626, allocations: 3.938 kB / 482.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of Templates: time 0.004765/0.1674, allocations: 1.742 MB / 483.9 MB, free: 52 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 -s cvode -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