Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 95.22 kB / 18 MB, free: 5.734 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.00134/0.00134, allocations: 177.9 kB / 18.91 MB, free: 4.871 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.363/1.363, allocations: 223.3 MB / 243 MB, free: 84 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2125/0.2125, allocations: 44.25 MB / 338.3 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1292, allocations: 61.94 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003872/0.1332, allocations: 2.656 MB / 475.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1348, allocations: 0.709 MB / 476.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003731/0.1352, allocations: 8 kB / 476.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.1355, allocations: 39.62 kB / 476.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004222/0.136, allocations: 91.31 kB / 476.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.1364, allocations: 95.88 kB / 476.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006774/0.137, allocations: 458.4 kB / 477 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.1374, allocations: 140.8 kB / 477.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.1378, allocations: 155.4 kB / 477.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.1381, allocations: 183.1 kB / 477.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.74e-05/0.1382, allocations: 20 kB / 477.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.606e-05/0.1383, allocations: 20 kB / 477.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.789e-05/0.1384, allocations: 67.62 kB / 477.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.1386, allocations: 204.7 kB / 477.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.139, allocations: 339 kB / 478.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.139, allocations: 0 / 478.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.139, allocations: 4 kB / 478.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.139, allocations: 4 kB / 478.1 MB, free: 8.137 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001518/0.1406, allocations: 0.628 MB / 478.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.1406, allocations: 12.03 kB / 478.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1408, allocations: 44.38 kB / 478.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.1413, allocations: 287.6 kB / 479 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.1413, allocations: 33.38 kB / 479.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.37e-05/0.1414, allocations: 36.38 kB / 479.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.1422, allocations: 350.8 kB / 479.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1422, allocations: 4 kB / 479.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.1423, allocations: 16 kB / 479.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1423, allocations: 8 kB / 479.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000707/0.143, allocations: 311.8 kB / 479.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.1456, allocations: 1.349 MB / 481.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/0.1462, allocations: 284.9 kB / 481.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1465, allocations: 169.3 kB / 481.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.1465, allocations: 8.266 kB / 481.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.1466, allocations: 38.78 kB / 481.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.774e-06/0.1466, allocations: 0 / 481.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009161/0.1475, allocations: 391.4 kB / 482 MB, free: 3.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1476, allocations: 63.33 kB / 482.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.1479, allocations: 266.6 kB / 482.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.1479, allocations: 33.7 kB / 482.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.1481, allocations: 204 kB / 482.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1482, allocations: 118.2 kB / 482.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.1483, allocations: 33.7 kB / 482.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.1486, allocations: 342.8 kB / 483 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.1488, allocations: 108.8 kB / 483.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/0.1491, allocations: 179.4 kB / 483.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005568/0.1497, allocations: 300.6 kB / 483.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1497, allocations: 4 kB / 483.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006968/0.1504, allocations: 374.5 kB / 484 MB, free: 1.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1504, allocations: 7.938 kB / 484 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1505, allocations: 7.984 kB / 484 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1505, allocations: 4 kB / 484 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.151, allocations: 111.8 kB / 484.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.151, allocations: 4 kB / 484.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.1513, allocations: 51.52 kB / 484.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.1514, allocations: 12 kB / 484.2 MB, free: 1.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * 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.0001715/0.1515, allocations: 157.7 kB / 484.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.1516, allocations: 31.62 kB / 484.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007033/0.1523, allocations: 336.3 kB / 484.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.1523, allocations: 0 / 484.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.1523, allocations: 4 kB / 484.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1524, allocations: 0 / 484.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005234/0.1529, allocations: 409.1 kB / 485.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1529, allocations: 0 / 485.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.1533, allocations: 83.88 kB / 485.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.1533, allocations: 0 / 485.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.1534, allocations: 12 kB / 485.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.1534, allocations: 0 / 485.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1534, allocations: 0 / 485.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009088/0.1543, allocations: 0.5383 MB / 485.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.1545, allocations: 124.7 kB / 485.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.1545, allocations: 8 kB / 485.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.1548, allocations: 11.98 kB / 485.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.1548, allocations: 23.97 kB / 485.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.1549, allocations: 8 kB / 485.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.1551, allocations: 194 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1551, allocations: 8 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003699/0.1555, allocations: 87.75 kB / 486.2 MB, free: 15.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * 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.0001295/0.1556, allocations: 103.8 kB / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006187/0.1562, allocations: 287.9 kB / 486.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1562, allocations: 3.938 kB / 486.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.1565, allocations: 135.9 kB / 486.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.1569, allocations: 40.42 kB / 486.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.1585, allocations: 0.9919 MB / 487.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.159, allocations: 0.7835 MB / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.1591, allocations: 35.36 kB / 488.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1591, allocations: 0 / 488.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of Templates: time 0.006817/0.1659, allocations: 3.811 MB / 492.4 MB, free: 9.375 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches