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.001103/0.001103, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.00118/0.00118, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.414/1.414, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2502/0.2502, allocations: 44.19 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4473/0.4485, allocations: 60.81 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00404/0.4526, allocations: 2.455 MB / 0.5213 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.4542, allocations: 0.7738 MB / 0.522 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.4544, allocations: 3.375 kB / 0.522 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.4546, allocations: 49.36 kB / 0.5221 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000281/0.455, allocations: 101.7 kB / 0.5222 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.4553, allocations: 97.72 kB / 0.5223 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.4556, allocations: 344.5 kB / 0.5226 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.4559, allocations: 92.98 kB / 0.5227 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.4561, allocations: 138 kB / 0.5228 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.4563, allocations: 152.5 kB / 0.523 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.654e-05/0.4564, allocations: 28.62 kB / 0.523 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.4565, allocations: 32.84 kB / 0.523 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.984e-05/0.4565, allocations: 70.25 kB / 0.5231 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.4567, allocations: 146 kB / 0.5232 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005023/0.4572, allocations: 367.2 kB / 0.5236 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4572, allocations: 2.094 kB / 0.5236 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4572, allocations: 0 / 0.5236 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.4572, allocations: 0 / 0.5236 GB, free: 0.5469 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.001047/0.4583, allocations: 0.6136 MB / 0.5242 GB, free: 48 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.4583, allocations: 11.42 kB / 0.5242 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.525e-05/0.4584, allocations: 35.55 kB / 0.5242 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004599/0.4589, allocations: 267.5 kB / 0.5245 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.4589, allocations: 15.44 kB / 0.5245 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.459, allocations: 22.69 kB / 0.5245 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006165/0.4596, allocations: 248.2 kB / 0.5248 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.4596, allocations: 0.7031 kB / 0.5248 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.4597, allocations: 14.44 kB / 0.5248 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.4597, allocations: 6.438 kB / 0.5248 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006403/0.4603, allocations: 239.2 kB / 0.525 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.4624, allocations: 0.8732 MB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007915/0.4632, allocations: 307.6 kB / 0.5262 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/0.4637, allocations: 144.3 kB / 0.5263 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.819e-05/0.4637, allocations: 3.359 kB / 0.5263 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/0.4638, allocations: 37.31 kB / 0.5263 GB, free: 14.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.013e-06/0.4638, allocations: 0 / 0.5263 GB, free: 14.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00469/0.4685, allocations: 1.262 MB / 0.5276 GB, free: 13.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.4686, allocations: 55.06 kB / 0.5276 GB, free: 13.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.469, allocations: 211.2 kB / 0.5278 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.469, allocations: 35.52 kB / 0.5279 GB, free: 13.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.4692, allocations: 168.1 kB / 0.528 GB, free: 13.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.4693, allocations: 108.7 kB / 0.5281 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.4694, allocations: 50.86 kB / 0.5282 GB, free: 13.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.4696, allocations: 333.8 kB / 0.5285 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.4699, allocations: 92.23 kB / 0.5286 GB, free: 12.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.4702, allocations: 130.3 kB / 0.5287 GB, free: 12.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005862/0.4708, allocations: 226.1 kB / 0.5289 GB, free: 12.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.4708, allocations: 5.062 kB / 0.5289 GB, free: 12.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002088/0.4729, allocations: 0.5419 MB / 0.5295 GB, free: 12.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.473, allocations: 6.031 kB / 0.5295 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.473, allocations: 0 / 0.5295 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/0.4749, allocations: 318 kB / 0.5298 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.4751, allocations: 26.94 kB / 0.5298 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008019/0.4831, allocations: 6.835 MB / 0.5365 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003116/0.4834, allocations: 27.16 kB / 0.5365 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.4835, allocations: 10.91 kB / 0.5365 GB, free: 5.676 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.000222/0.4837, allocations: 137.9 kB / 0.5366 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.4838, allocations: 39.77 kB / 0.5367 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.4855, allocations: 0.5408 MB / 0.5372 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.4855, allocations: 7.469 kB / 0.5372 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.4855, allocations: 7.938 kB / 0.5372 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.4855, allocations: 5.109 kB / 0.5372 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.486, allocations: 350.8 kB / 0.5375 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.486, allocations: 0 / 0.5375 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.4862, allocations: 26.03 kB / 0.5376 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.4877, allocations: 311.4 kB / 0.5379 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.4877, allocations: 5.281 kB / 0.5379 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007554/0.4953, allocations: 6.892 MB / 0.5446 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4953, allocations: 1.281 kB / 0.5446 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.4971, allocations: 0.6193 MB / 0.5452 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-05/0.4972, allocations: 116.7 kB / 0.5453 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.4973, allocations: 5.688 kB / 0.5453 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.4974, allocations: 16.48 kB / 0.5453 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.4976, allocations: 30.77 kB / 0.5454 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.4976, allocations: 4.844 kB / 0.5454 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001683/0.4978, allocations: 161.9 kB / 0.5455 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4978, allocations: 0 / 0.5455 GB, free: 13.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005961/0.4984, allocations: 120.7 kB / 0.5456 GB, free: 13.43 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.0001273/0.4985, allocations: 105.1 kB / 0.5457 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.4996, allocations: 0.7592 MB / 0.5465 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4996, allocations: 0 / 0.5465 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.5009, allocations: 0.7309 MB / 0.5472 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.5012, allocations: 27.53 kB / 0.5472 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.5023, allocations: 0.5442 MB / 0.5478 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.5027, allocations: 0.767 MB / 0.5485 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.041e-05/0.5027, allocations: 18.31 kB / 0.5485 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.075e-05/0.5028, allocations: 12.88 kB / 0.5485 GB, free: 10.95 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.5028, allocations: 0 / 0.5485 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Templates: time 0.0135/0.5163, allocations: 8.118 MB / 0.5565 GB, free: 3.809 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