Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 121.4 kB / 19.17 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002136/0.002136, allocations: 206.5 kB / 22.12 MB, free: 0.9062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 230.3 MB / 255.2 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2319/0.2319, allocations: 46.91 MB / 358.2 MB, free: 10.41 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 75.88 kB / 0.4925 GB, free: 7.664 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1375, allocations: 66 MB / 0.557 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.005068/0.1426, allocations: 3.023 MB / 0.5599 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1444, allocations: 0.779 MB / 0.5607 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003342/0.1447, allocations: 7.938 kB / 0.5607 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.145, allocations: 55.39 kB / 0.5607 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003596/0.1453, allocations: 103.1 kB / 0.5608 GB, free: 1.539 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004378/0.1458, allocations: 123.8 kB / 0.561 GB, free: 1.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006965/0.1465, allocations: 470.6 kB / 0.5614 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.1467, allocations: 112 kB / 0.5615 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.1471, allocations: 203.3 kB / 0.5617 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.1475, allocations: 203.1 kB / 0.5619 GB, free: 444 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.761e-05/0.1475, allocations: 40 kB / 0.5619 GB, free: 404 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.1477, allocations: 47.98 kB / 0.562 GB, free: 356 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.931e-05/0.1478, allocations: 91.62 kB / 0.5621 GB, free: 264 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.148, allocations: 199 kB / 0.5623 GB, free: 64 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006055/0.1486, allocations: 474 kB / 0.5627 GB, free: 15.6 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1486, allocations: 0 / 0.5627 GB, free: 15.6 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1486, allocations: 4 kB / 0.5627 GB, free: 15.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.1486, allocations: 0 / 0.5627 GB, free: 15.59 MB / 430.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.00161/0.1502, allocations: 0.7093 MB / 0.5634 GB, free: 14.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.1503, allocations: 12.03 kB / 0.5634 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000306/0.1506, allocations: 56.64 kB / 0.5635 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005462/0.1511, allocations: 307.3 kB / 0.5638 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.1511, allocations: 29.38 kB / 0.5638 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.47e-05/0.1512, allocations: 40.38 kB / 0.5638 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.152, allocations: 346.8 kB / 0.5642 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.152, allocations: 0 / 0.5642 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.152, allocations: 16 kB / 0.5642 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.152, allocations: 8 kB / 0.5642 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006961/0.1527, allocations: 303.8 kB / 0.5645 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.1552, allocations: 1.337 MB / 0.5658 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.1557, allocations: 252.9 kB / 0.566 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.1561, allocations: 133.4 kB / 0.5661 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.1561, allocations: 12.2 kB / 0.5662 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.1561, allocations: 38.84 kB / 0.5662 GB, free: 11.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 3.627e-06/0.1561, allocations: 7.984 kB / 0.5662 GB, free: 11.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009134/0.157, allocations: 375.5 kB / 0.5666 GB, free: 11.44 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.1571, allocations: 59.34 kB / 0.5666 GB, free: 11.37 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.1574, allocations: 254.7 kB / 0.5669 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.1574, allocations: 37.7 kB / 0.5669 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.1576, allocations: 208.2 kB / 0.5671 GB, free: 10.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1577, allocations: 127 kB / 0.5672 GB, free: 10.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.1578, allocations: 74.08 kB / 0.5673 GB, free: 10.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.158, allocations: 338.8 kB / 0.5676 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.1583, allocations: 100.8 kB / 0.5677 GB, free: 10.22 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.1586, allocations: 179.4 kB / 0.5679 GB, free: 10.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005646/0.1592, allocations: 288.6 kB / 0.5682 GB, free: 9.719 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1592, allocations: 3.938 kB / 0.5682 GB, free: 9.715 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007459/0.1599, allocations: 366.4 kB / 0.5685 GB, free: 9.352 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.16, allocations: 8.219 kB / 0.5685 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.16, allocations: 4 kB / 0.5685 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.16, allocations: 4 kB / 0.5685 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.1605, allocations: 103.8 kB / 0.5686 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.1605, allocations: 7.984 kB / 0.5686 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.1608, allocations: 39.67 kB / 0.5687 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.1608, allocations: 23.98 kB / 0.5687 GB, free: 9.164 MB / 430.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.0001753/0.161, allocations: 149.7 kB / 0.5688 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.1611, allocations: 31.81 kB / 0.5689 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007346/0.1618, allocations: 328.2 kB / 0.5692 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1618, allocations: 4 kB / 0.5692 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1618, allocations: 0 / 0.5692 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1618, allocations: 3.984 kB / 0.5692 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000554/0.1624, allocations: 409.1 kB / 0.5696 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1624, allocations: 0 / 0.5696 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1628, allocations: 87.81 kB / 0.5697 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1628, allocations: 4 kB / 0.5697 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.1628, allocations: 8 kB / 0.5697 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1629, allocations: 3.984 kB / 0.5697 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1629, allocations: 0 / 0.5697 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009694/0.1638, allocations: 0.5145 MB / 0.5702 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.164, allocations: 128.9 kB / 0.5703 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.164, allocations: 8 kB / 0.5703 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.1643, allocations: 8 kB / 0.5703 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.1643, allocations: 23.97 kB / 0.5703 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.1643, allocations: 11.98 kB / 0.5703 GB, free: 7.359 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.1646, allocations: 197.8 kB / 0.5705 GB, free: 7.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1646, allocations: 0 / 0.5705 GB, free: 7.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003939/0.165, allocations: 91.83 kB / 0.5706 GB, free: 7.074 MB / 430.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.0001296/0.1651, allocations: 107.2 kB / 0.5707 GB, free: 6.961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009239/0.166, allocations: 259.8 kB / 0.571 GB, free: 6.707 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.166, allocations: 0 / 0.571 GB, free: 6.707 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004449/0.1665, allocations: 132.3 kB / 0.5711 GB, free: 6.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005602/0.167, allocations: 32.92 kB / 0.5711 GB, free: 6.547 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.1691, allocations: 0.7895 MB / 0.5719 GB, free: 5.727 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.1696, allocations: 0.7835 MB / 0.5727 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.1698, allocations: 35.42 kB / 0.5727 GB, free: 4.883 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1698, allocations: 0 / 0.5727 GB, free: 4.883 MB / 430.1 MB Notification: Performance of Templates: time 0.01044/0.1802, allocations: 3.936 MB / 0.5765 GB, free: 0.9609 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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: 7.367175986990333]