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.001217/0.001217, allocations: 110.6 kB / 17.33 MB, free: 5.984 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.001141/0.001142, allocations: 193.3 kB / 18.25 MB, free: 5.074 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.422/1.422, allocations: 222.9 MB / 241.9 MB, free: 13.74 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.206/0.206, allocations: 44.18 MB / 336.2 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 64.44 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1325, allocations: 60.84 MB / 468.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00472/0.1373, allocations: 2.478 MB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.139, allocations: 0.7557 MB / 472 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.1393, allocations: 4 kB / 472 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.1396, allocations: 39.7 kB / 472 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004087/0.1401, allocations: 91.42 kB / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1405, allocations: 83.91 kB / 472.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004915/0.141, allocations: 346.8 kB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.1413, allocations: 100.5 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.1415, allocations: 139.5 kB / 472.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.1417, allocations: 151.3 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.924e-05/0.1418, allocations: 32 kB / 472.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.1418, allocations: 28 kB / 473 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.867e-05/0.1419, allocations: 71.75 kB / 473 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.142, allocations: 147.2 kB / 473.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.1424, allocations: 359 kB / 473.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1424, allocations: 4 kB / 473.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1424, allocations: 0 / 473.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1424, allocations: 0 / 473.5 MB, free: 9.895 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.001019/0.1434, allocations: 0.6119 MB / 474.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1435, allocations: 8.031 kB / 474.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.806e-05/0.1436, allocations: 32.56 kB / 474.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.1439, allocations: 263.6 kB / 474.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.1439, allocations: 20.94 kB / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.1439, allocations: 24.38 kB / 474.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005364/0.1445, allocations: 249.2 kB / 474.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1445, allocations: 3.938 kB / 474.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.1445, allocations: 8 kB / 474.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.1446, allocations: 8 kB / 474.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.1451, allocations: 230.1 kB / 475 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.1467, allocations: 0.8753 MB / 475.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/0.1472, allocations: 302.7 kB / 476.1 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/0.1475, allocations: 141.3 kB / 476.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.1475, allocations: 15.97 kB / 476.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1476, allocations: 34.56 kB / 476.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.1476, allocations: 0 / 476.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004768/0.1524, allocations: 1.258 MB / 477.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.1524, allocations: 59.41 kB / 477.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.1526, allocations: 213 kB / 477.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.1527, allocations: 33.7 kB / 477.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.822e-05/0.1528, allocations: 157.1 kB / 478 MB, free: 5.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.442e-05/0.1529, allocations: 106.4 kB / 478.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/0.1529, allocations: 49.69 kB / 478.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.1531, allocations: 338.8 kB / 478.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.1534, allocations: 95.89 kB / 478.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.1536, allocations: 121.9 kB / 478.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004445/0.154, allocations: 223.3 kB / 478.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1541, allocations: 0 / 478.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001804/0.1559, allocations: 0.5489 MB / 479.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1559, allocations: 4 kB / 479.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1559, allocations: 0 / 479.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.1577, allocations: 323.1 kB / 479.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1578, allocations: 19.98 kB / 479.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007809/0.1657, allocations: 6.824 MB / 486.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.1659, allocations: 31.83 kB / 486.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.1659, allocations: 11.94 kB / 486.7 MB, free: 11.79 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.0001636/0.1661, allocations: 145.7 kB / 486.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.457e-05/0.1662, allocations: 23.72 kB / 486.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.1679, allocations: 0.5463 MB / 487.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.168, allocations: 4 kB / 487.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.168, allocations: 3.938 kB / 487.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.168, allocations: 3.938 kB / 487.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.1684, allocations: 361.2 kB / 487.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1684, allocations: 192 / 487.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.1686, allocations: 23.98 kB / 487.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/0.1706, allocations: 311.2 kB / 488.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.1707, allocations: 4 kB / 488.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009927/0.1806, allocations: 6.901 MB / 495 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1807, allocations: 4.031 kB / 495 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.183, allocations: 0.6166 MB / 495.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.1831, allocations: 108.6 kB / 495.7 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.1832, allocations: 4 kB / 495.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.1835, allocations: 11.98 kB / 495.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.1837, allocations: 35.95 kB / 495.8 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.1837, allocations: 8 kB / 495.8 MB, free: 2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.1839, allocations: 160.5 kB / 496 MB, free: 1.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1839, allocations: 0 / 496 MB, free: 1.848 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008105/0.1847, allocations: 119.8 kB / 496.1 MB, free: 1.73 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.0001647/0.1849, allocations: 95.25 kB / 496.2 MB, free: 1.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.1864, allocations: 0.7681 MB / 496.9 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1865, allocations: 0 / 496.9 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.1881, allocations: 0.7328 MB / 497.7 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.1887, allocations: 31.53 kB / 497.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.1903, allocations: 0.6496 MB / 498.3 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.1908, allocations: 0.7678 MB / 499.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1909, allocations: 17.94 kB / 499.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.879e-05/0.191, allocations: 11.44 kB / 499.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.191, allocations: 4 kB / 499.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of Templates: time 0.01779/0.2088, allocations: 7.942 MB / 0.4952 GB, free: 6.57 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