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.001114/0.001114, allocations: 117.2 kB / 17.78 MB, free: 5.262 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.001277/0.001277, allocations: 184.2 kB / 18.71 MB, free: 4.34 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.419/1.419, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2367/0.2367, allocations: 44.18 MB / 336.7 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 71.88 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5227/0.5241, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003781/0.528, allocations: 2.449 MB / 0.5213 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.5293, allocations: 0.7653 MB / 0.522 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.5295, allocations: 3.062 kB / 0.522 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.5297, allocations: 62.3 kB / 0.5221 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.53, allocations: 97.19 kB / 0.5222 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.5303, allocations: 102 kB / 0.5223 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.5307, allocations: 343.4 kB / 0.5226 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.531, allocations: 89.42 kB / 0.5227 GB, free: 1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.5312, allocations: 134.5 kB / 0.5228 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.5314, allocations: 159.5 kB / 0.523 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.5315, allocations: 28.91 kB / 0.523 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.257e-05/0.5315, allocations: 33.69 kB / 0.523 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.5316, allocations: 65.69 kB / 0.5231 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.5318, allocations: 146.9 kB / 0.5232 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.5323, allocations: 367.9 kB / 0.5236 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.5323, allocations: 1.594 kB / 0.5236 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5323, allocations: 0 / 0.5236 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.5323, allocations: 4.734 kB / 0.5236 GB, free: 0.5703 MB / 382.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.0011/0.5334, allocations: 0.6062 MB / 0.5242 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.5335, allocations: 10.47 kB / 0.5242 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.5335, allocations: 35.31 kB / 0.5242 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.5339, allocations: 262.8 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.5339, allocations: 19.56 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.534, allocations: 23.88 kB / 0.5245 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005787/0.5346, allocations: 248.8 kB / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.5346, allocations: 0 / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/0.5346, allocations: 9.438 kB / 0.5248 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.5346, allocations: 10.28 kB / 0.5248 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005667/0.5352, allocations: 232 kB / 0.525 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.5368, allocations: 0.8734 MB / 0.5259 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.5374, allocations: 308.2 kB / 0.5261 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000302/0.5377, allocations: 142.6 kB / 0.5263 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.5378, allocations: 4.766 kB / 0.5263 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.5378, allocations: 31.91 kB / 0.5263 GB, free: 14.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.5378, allocations: 0 / 0.5263 GB, free: 14.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004623/0.5425, allocations: 1.265 MB / 0.5276 GB, free: 13.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.5425, allocations: 55.53 kB / 0.5276 GB, free: 13.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.5428, allocations: 215.1 kB / 0.5278 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.5428, allocations: 35.06 kB / 0.5278 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.5429, allocations: 160.9 kB / 0.528 GB, free: 13.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.543, allocations: 98.94 kB / 0.5281 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.5431, allocations: 51.48 kB / 0.5281 GB, free: 13.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5433, allocations: 336.3 kB / 0.5285 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.5436, allocations: 96.97 kB / 0.5286 GB, free: 12.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.5438, allocations: 126.5 kB / 0.5287 GB, free: 12.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.5443, allocations: 226.9 kB / 0.5289 GB, free: 12.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5443, allocations: 0 / 0.5289 GB, free: 12.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001796/0.5461, allocations: 0.5431 MB / 0.5294 GB, free: 12.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.5462, allocations: 4.75 kB / 0.5294 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.5462, allocations: 1.125 kB / 0.5294 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001701/0.5479, allocations: 321.5 kB / 0.5297 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.5481, allocations: 27.39 kB / 0.5298 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008244/0.5563, allocations: 6.834 MB / 0.5364 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.5566, allocations: 32.73 kB / 0.5365 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.5567, allocations: 9.281 kB / 0.5365 GB, free: 5.719 MB / 398.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.0002025/0.5569, allocations: 140.5 kB / 0.5366 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.5569, allocations: 24.09 kB / 0.5366 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.5589, allocations: 0.5451 MB / 0.5372 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.5589, allocations: 3.625 kB / 0.5372 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5589, allocations: 3.938 kB / 0.5372 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5589, allocations: 4 kB / 0.5372 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.5594, allocations: 363 kB / 0.5375 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5594, allocations: 9.094 kB / 0.5375 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.5596, allocations: 17.36 kB / 0.5375 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/0.5612, allocations: 307.7 kB / 0.5378 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.5612, allocations: 5.125 kB / 0.5378 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009096/0.5703, allocations: 6.892 MB / 0.5446 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5704, allocations: 0 / 0.5446 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.5724, allocations: 0.6162 MB / 0.5452 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.5725, allocations: 108.9 kB / 0.5453 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.5726, allocations: 5.281 kB / 0.5453 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.5728, allocations: 12.83 kB / 0.5453 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.5729, allocations: 33.67 kB / 0.5453 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.573, allocations: 6.25 kB / 0.5453 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.5732, allocations: 157.2 kB / 0.5455 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5732, allocations: 0 / 0.5455 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007181/0.574, allocations: 124.8 kB / 0.5456 GB, free: 13.5 MB / 414.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.0001579/0.5741, allocations: 105.5 kB / 0.5457 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.5755, allocations: 0.7546 MB / 0.5464 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5755, allocations: 1.469 kB / 0.5464 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.5768, allocations: 0.7296 MB / 0.5472 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.5772, allocations: 34.64 kB / 0.5472 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.5784, allocations: 0.533 MB / 0.5477 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.5788, allocations: 0.7708 MB / 0.5485 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.734e-05/0.5789, allocations: 14.48 kB / 0.5485 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.586e-05/0.5789, allocations: 13 kB / 0.5485 GB, free: 11.02 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5789, allocations: 0 / 0.5485 GB, free: 11.02 MB / 414.1 MB Notification: Performance of Templates: time 0.01739/0.5963, allocations: 8.123 MB / 0.5564 GB, free: 3.91 MB / 414.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