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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.0009605/0.0009607, allocations: 195.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007861/0.000786, allocations: 101.1 kB / 297.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4143/0.4143, allocations: 44.83 MB / 394.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 11.98 kB / 467.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4486, allocations: 62.95 MB / 0.5184 GB, free: 37.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1629/0.6115, allocations: 91.12 MB / 0.6074 GB, free: 14.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004463/0.612, allocations: 83.94 kB / 0.6075 GB, free: 14.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03184/0.6439, allocations: 6.894 MB / 0.6142 GB, free: 7.129 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.644, allocations: 0 / 0.6142 GB, free: 7.129 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.117e-05/0.644, allocations: 4 kB / 0.6142 GB, free: 7.125 MB / 426.7 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.001559/0.6456, allocations: 0.5544 MB / 0.6148 GB, free: 6.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.6456, allocations: 8.031 kB / 0.6148 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.6459, allocations: 40.55 kB / 0.6148 GB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007161/0.6466, allocations: 287.7 kB / 0.6151 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.6467, allocations: 28.92 kB / 0.6151 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.6468, allocations: 20.38 kB / 0.6151 GB, free: 6.105 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008916/0.6477, allocations: 249.4 kB / 0.6154 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.6478, allocations: 192 / 0.6154 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.6478, allocations: 11.94 kB / 0.6154 GB, free: 5.848 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.6479, allocations: 8 kB / 0.6154 GB, free: 5.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009186/0.6488, allocations: 242.1 kB / 0.6156 GB, free: 5.605 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002552/0.6514, allocations: 0.8754 MB / 0.6165 GB, free: 4.664 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009719/0.6523, allocations: 310.7 kB / 0.6168 GB, free: 4.352 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.6529, allocations: 152.7 kB / 0.6169 GB, free: 4.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.852e-05/0.653, allocations: 7.984 kB / 0.6169 GB, free: 4.191 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.653, allocations: 38.5 kB / 0.617 GB, free: 4.145 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 5.68e-06/0.653, allocations: 0 / 0.617 GB, free: 4.145 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.007321/0.6604, allocations: 1.258 MB / 0.6182 GB, free: 2.793 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.6605, allocations: 55.41 kB / 0.6182 GB, free: 2.727 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.6609, allocations: 213 kB / 0.6185 GB, free: 2.508 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.6609, allocations: 33.7 kB / 0.6185 GB, free: 2.469 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.6611, allocations: 157.1 kB / 0.6186 GB, free: 2.312 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.6613, allocations: 110.5 kB / 0.6187 GB, free: 2.203 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.6613, allocations: 4 kB / 0.6187 GB, free: 2.199 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.6615, allocations: 338.8 kB / 0.6191 GB, free: 1.859 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.6619, allocations: 91.95 kB / 0.6192 GB, free: 1.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.6623, allocations: 133.2 kB / 0.6193 GB, free: 1.633 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008571/0.6632, allocations: 236.1 kB / 0.6195 GB, free: 1.398 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.6632, allocations: 4 kB / 0.6195 GB, free: 1.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003151/0.6664, allocations: 0.5528 MB / 0.62 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.6665, allocations: 10.97 kB / 0.6201 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.6665, allocations: 0 / 0.6201 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/0.6692, allocations: 319.1 kB / 0.6204 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.6695, allocations: 27.98 kB / 0.6204 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.6804, allocations: 6.339 MB / 0.6266 GB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004287/0.6809, allocations: 27.86 kB / 0.6266 GB, free: 9.562 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.681, allocations: 12 kB / 0.6266 GB, free: 9.551 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002927/0.6813, allocations: 137.8 kB / 0.6268 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.6814, allocations: 23.72 kB / 0.6268 GB, free: 9.383 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.6845, allocations: 0.5619 MB / 0.6273 GB, free: 8.805 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.6845, allocations: 4 kB / 0.6273 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.6845, allocations: 0 / 0.6273 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.6845, allocations: 3.938 kB / 0.6273 GB, free: 8.797 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007335/0.6853, allocations: 365.1 kB / 0.6277 GB, free: 8.391 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.6853, allocations: 0 / 0.6277 GB, free: 8.391 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.6856, allocations: 23.92 kB / 0.6277 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002315/0.6879, allocations: 307.2 kB / 0.628 GB, free: 8.055 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.688, allocations: 19.94 kB / 0.628 GB, free: 8.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.6989, allocations: 6.256 MB / 0.6341 GB, free: 1.246 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.6989, allocations: 3.938 kB / 0.6341 GB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/0.7017, allocations: 0.6285 MB / 0.6347 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.7019, allocations: 112.6 kB / 0.6348 GB, free: 468 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.702, allocations: 7.984 kB / 0.6349 GB, free: 460 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.7023, allocations: 15.98 kB / 0.6349 GB, free: 444 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.7025, allocations: 31.89 kB / 0.6349 GB, free: 412 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.7026, allocations: 8 kB / 0.6349 GB, free: 404 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002804/0.7029, allocations: 164.5 kB / 0.6351 GB, free: 236 kB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7029, allocations: 0 / 0.6351 GB, free: 236 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009511/0.7038, allocations: 119.8 kB / 0.6352 GB, free: 116 kB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,2 4,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002861/0.7041, allocations: 119 kB / 0.6353 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.7059, allocations: 0.7446 MB / 0.636 GB, free: 15.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.7059, allocations: 4 kB / 0.636 GB, free: 15.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.7075, allocations: 0.6782 MB / 0.6367 GB, free: 14.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.7081, allocations: 30.98 kB / 0.6367 GB, free: 14.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.7098, allocations: 0.6339 MB / 0.6373 GB, free: 13.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.7103, allocations: 0.7678 MB / 0.6381 GB, free: 12.97 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.7105, allocations: 5.969 kB / 0.6381 GB, free: 12.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.848e-05/0.7105, allocations: 15.44 kB / 0.6381 GB, free: 12.95 MB / 458.7 MB Notification: Performance of SimCode: time 7.82e-07/0.7105, allocations: 0 / 0.6381 GB, free: 12.95 MB / 458.7 MB Notification: Performance of Templates: time 0.02332/0.7339, allocations: 7.475 MB / 0.6454 GB, free: 5.508 MB / 458.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches