Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.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_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001115/0.001115, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2413/0.2413, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 79.86 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4398, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004545/0.4444, allocations: 2.488 MB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.4459, allocations: 0.8313 MB / 0.5342 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.4461, allocations: 8.719 kB / 0.5342 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.4463, allocations: 55.59 kB / 0.5343 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000286/0.4466, allocations: 108.1 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.4469, allocations: 102.1 kB / 0.5345 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.4473, allocations: 358.6 kB / 0.5348 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.4476, allocations: 90.02 kB / 0.5349 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.4479, allocations: 148.9 kB / 0.5351 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.4481, allocations: 154.5 kB / 0.5352 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.334e-05/0.4482, allocations: 29.28 kB / 0.5352 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.072e-05/0.4483, allocations: 37 kB / 0.5353 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.4483, allocations: 62.64 kB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.4485, allocations: 165.7 kB / 0.5355 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.4489, allocations: 378 kB / 0.5359 GB, free: 9.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4489, allocations: 0 / 0.5359 GB, free: 9.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.449, allocations: 0 / 0.5359 GB, free: 9.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.449, allocations: 1.312 kB / 0.5359 GB, free: 9.852 MB / 398.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.001317/0.4503, allocations: 0.6272 MB / 0.5365 GB, free: 9.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.4504, allocations: 9.688 kB / 0.5365 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002876/0.4506, allocations: 40.77 kB / 0.5365 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.4511, allocations: 266.1 kB / 0.5368 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.4511, allocations: 21.84 kB / 0.5368 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.985e-05/0.4511, allocations: 23.75 kB / 0.5368 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.4517, allocations: 251.8 kB / 0.5371 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.4517, allocations: 0 / 0.5371 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.4518, allocations: 10.34 kB / 0.5371 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4518, allocations: 5.562 kB / 0.5371 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005428/0.4523, allocations: 237.3 kB / 0.5373 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.4538, allocations: 0.8799 MB / 0.5382 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.4544, allocations: 306.1 kB / 0.5384 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.4547, allocations: 142.3 kB / 0.5386 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.4548, allocations: 4.406 kB / 0.5386 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.4548, allocations: 35.69 kB / 0.5386 GB, free: 7.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.352e-06/0.4549, allocations: 0 / 0.5386 GB, free: 7.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004708/0.4596, allocations: 1.266 MB / 0.5399 GB, free: 6.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.4596, allocations: 59.64 kB / 0.5399 GB, free: 6.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.4599, allocations: 226.9 kB / 0.5401 GB, free: 6.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.4599, allocations: 30.89 kB / 0.5402 GB, free: 6.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.4601, allocations: 174.6 kB / 0.5403 GB, free: 6.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/0.4602, allocations: 102 kB / 0.5404 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.4603, allocations: 57.02 kB / 0.5405 GB, free: 6.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4604, allocations: 336.6 kB / 0.5408 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.4606, allocations: 92.55 kB / 0.5409 GB, free: 5.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.4609, allocations: 128.3 kB / 0.541 GB, free: 5.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.4614, allocations: 227.5 kB / 0.5412 GB, free: 5.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4614, allocations: 1.125 kB / 0.5412 GB, free: 5.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001895/0.4633, allocations: 0.5525 MB / 0.5418 GB, free: 5.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.4633, allocations: 5.844 kB / 0.5418 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4634, allocations: 0 / 0.5418 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/0.4651, allocations: 314.7 kB / 0.5421 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.4653, allocations: 26.94 kB / 0.5421 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008169/0.4734, allocations: 6.85 MB / 0.5488 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.4737, allocations: 27.77 kB / 0.5488 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.4737, allocations: 11.94 kB / 0.5488 GB, free: 14.55 MB / 414.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.0001919/0.4739, allocations: 145.7 kB / 0.549 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.073e-05/0.474, allocations: 31.62 kB / 0.549 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.4757, allocations: 0.544 MB / 0.5495 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.4757, allocations: 4 kB / 0.5495 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4758, allocations: 3.938 kB / 0.5495 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.4758, allocations: 7.938 kB / 0.5495 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.4762, allocations: 353.3 kB / 0.5499 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.4762, allocations: 4 kB / 0.5499 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.4763, allocations: 19.97 kB / 0.5499 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.4778, allocations: 315.1 kB / 0.5502 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.4779, allocations: 12 kB / 0.5502 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007113/0.485, allocations: 6.893 MB / 0.5569 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.485, allocations: 0 / 0.5569 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.4867, allocations: 0.6234 MB / 0.5575 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.105e-05/0.4868, allocations: 116.5 kB / 0.5577 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.4869, allocations: 11.98 kB / 0.5577 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.4871, allocations: 12 kB / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.4872, allocations: 27.95 kB / 0.5577 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.4872, allocations: 4 kB / 0.5577 GB, free: 4.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001751/0.4874, allocations: 174 kB / 0.5579 GB, free: 4.582 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4874, allocations: 0 / 0.5579 GB, free: 4.582 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006346/0.488, allocations: 123.8 kB / 0.558 GB, free: 4.461 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.0001503/0.4882, allocations: 103.2 kB / 0.5581 GB, free: 4.352 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.4894, allocations: 0.7486 MB / 0.5588 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4894, allocations: 0 / 0.5588 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.4906, allocations: 0.7406 MB / 0.5596 GB, free: 2.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.4909, allocations: 24.55 kB / 0.5596 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009965/0.4919, allocations: 0.5559 MB / 0.5601 GB, free: 2.148 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.4923, allocations: 0.7756 MB / 0.5609 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.805e-05/0.4923, allocations: 9.969 kB / 0.5609 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.4924, allocations: 15.44 kB / 0.5609 GB, free: 1.32 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.4924, allocations: 0 / 0.5609 GB, free: 1.32 MB / 414.1 MB Notification: Performance of Templates: time 0.0137/0.5061, allocations: 8.45 MB / 0.5692 GB, free: 8.91 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches