Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 104 kB / 17.63 MB, free: 5.523 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.001119/0.001119, allocations: 192.1 kB / 18.56 MB, free: 4.605 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.36/1.36, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2165/0.2165, allocations: 44.17 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 64.59 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1401, allocations: 60.81 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004149/0.1443, allocations: 2.44 MB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1456, allocations: 0.7673 MB / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.1458, allocations: 4 kB / 472.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.146, allocations: 59.5 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.1463, allocations: 99.31 kB / 472.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1466, allocations: 95.8 kB / 472.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.1469, allocations: 342.8 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.1472, allocations: 104.5 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.1474, allocations: 135.5 kB / 473.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.1476, allocations: 155.3 kB / 473.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.834e-05/0.1476, allocations: 28 kB / 473.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.69e-05/0.1477, allocations: 28 kB / 473.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.494e-05/0.1478, allocations: 67.75 kB / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.1479, allocations: 151.2 kB / 473.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.1482, allocations: 359 kB / 474 MB, free: 9.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1483, allocations: 0 / 474 MB, free: 9.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1483, allocations: 0 / 474 MB, free: 9.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1483, allocations: 4 kB / 474.1 MB, free: 9.551 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001084/0.1494, allocations: 0.6119 MB / 474.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1494, allocations: 8.031 kB / 474.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.1495, allocations: 32.56 kB / 474.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.1498, allocations: 259.6 kB / 475 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.1499, allocations: 20.94 kB / 475 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.1499, allocations: 24.38 kB / 475 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.1504, allocations: 245.2 kB / 475.2 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1505, allocations: 0 / 475.2 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.1505, allocations: 16 kB / 475.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.1505, allocations: 4 kB / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.151, allocations: 234.1 kB / 475.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.1525, allocations: 0.8791 MB / 476.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005449/0.153, allocations: 302.7 kB / 476.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.1533, allocations: 148.8 kB / 476.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.1533, allocations: 7.984 kB / 476.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.1534, allocations: 30.56 kB / 476.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.1534, allocations: 0 / 476.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004465/0.1579, allocations: 1.262 MB / 478.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.1579, allocations: 59.34 kB / 478.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.1582, allocations: 213 kB / 478.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.1582, allocations: 29.7 kB / 478.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1583, allocations: 161.1 kB / 478.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.864e-05/0.1584, allocations: 114.4 kB / 478.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1585, allocations: 49.7 kB / 478.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1587, allocations: 334.8 kB / 479 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.1589, allocations: 91.95 kB / 479.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.1591, allocations: 121.9 kB / 479.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004494/0.1596, allocations: 227.3 kB / 479.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1596, allocations: 0 / 479.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001676/0.1613, allocations: 0.545 MB / 480 MB, free: 3.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1613, allocations: 4 kB / 480 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1613, allocations: 4 kB / 480 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.1629, allocations: 315.1 kB / 480.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1631, allocations: 27.97 kB / 480.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007085/0.1702, allocations: 6.832 MB / 487.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.1704, allocations: 35.66 kB / 487.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1704, allocations: 11.94 kB / 487.2 MB, free: 11.43 MB / 366.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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001489/0.1706, allocations: 141.8 kB / 487.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.316e-05/0.1707, allocations: 27.7 kB / 487.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.1724, allocations: 0.5512 MB / 488 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1724, allocations: 4 kB / 488 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1724, allocations: 4.125 kB / 488 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1724, allocations: 3.984 kB / 488 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.1729, allocations: 353.2 kB / 488.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1729, allocations: 0 / 488.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.173, allocations: 27.91 kB / 488.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/0.1745, allocations: 311.2 kB / 488.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.1745, allocations: 4 kB / 488.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007445/0.182, allocations: 6.897 MB / 495.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.182, allocations: 0 / 495.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.1837, allocations: 0.6156 MB / 496.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.558e-05/0.1838, allocations: 112.6 kB / 496.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.1838, allocations: 4 kB / 496.3 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.184, allocations: 12.23 kB / 496.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.1841, allocations: 35.95 kB / 496.3 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1841, allocations: 8 kB / 496.3 MB, free: 1.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000169/0.1843, allocations: 164.5 kB / 496.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1843, allocations: 0 / 496.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000543/0.1849, allocations: 119.8 kB / 496.6 MB, free: 1.375 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000108/0.185, allocations: 99.25 kB / 496.7 MB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.1862, allocations: 0.7564 MB / 497.5 MB, free: 468 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.1862, allocations: 0 / 497.5 MB, free: 468 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.1875, allocations: 0.7289 MB / 498.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.1879, allocations: 24.44 kB / 498.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1891, allocations: 0.5475 MB / 498.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.1896, allocations: 0.7717 MB / 499.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.196e-05/0.1897, allocations: 13.94 kB / 499.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.1898, allocations: 11.44 kB / 499.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1898, allocations: 4 kB / 499.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of Templates: time 0.01435/0.2041, allocations: 7.997 MB / 0.4957 GB, free: 6.277 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches