Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 122.2 kB / 17.77 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002142/0.002142, allocations: 202 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2554/0.2554, allocations: 46.12 MB / 344.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003212/0.003213, allocations: 75.88 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3275, allocations: 62.45 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003999/0.3315, allocations: 2.362 MB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3329, allocations: 0.6634 MB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.333, allocations: 8.125 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.3332, allocations: 43.64 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.3334, allocations: 75.58 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.3337, allocations: 88.08 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.3341, allocations: 344.9 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.3344, allocations: 158.4 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.3347, allocations: 147.4 kB / 0.5344 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.3349, allocations: 151.6 kB / 0.5345 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.335, allocations: 34.16 kB / 0.5346 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.3351, allocations: 38.28 kB / 0.5346 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.427e-05/0.3352, allocations: 68.55 kB / 0.5347 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.3353, allocations: 166.5 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.3358, allocations: 376.6 kB / 0.5352 GB, free: 9.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3358, allocations: 4 kB / 0.5352 GB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3358, allocations: 0 / 0.5352 GB, free: 9.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.3358, allocations: 0 / 0.5352 GB, free: 9.789 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009624/0.3368, allocations: 0.5879 MB / 0.5358 GB, free: 9.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3368, allocations: 8.25 kB / 0.5358 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.102e-05/0.3369, allocations: 69.73 kB / 0.5358 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003045/0.3372, allocations: 53.61 kB / 0.5359 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.3374, allocations: 193.7 kB / 0.5361 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.3375, allocations: 26.12 kB / 0.5361 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.3375, allocations: 28.75 kB / 0.5361 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005299/0.3381, allocations: 282.3 kB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3381, allocations: 4 kB / 0.5364 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.3381, allocations: 14.44 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.3381, allocations: 8.438 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.3386, allocations: 210.7 kB / 0.5366 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.3405, allocations: 1.031 MB / 0.5376 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.992e-05/0.3406, allocations: 31.89 kB / 0.5377 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.846e-05/0.3406, allocations: 24.98 kB / 0.5377 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.3407, allocations: 0 / 0.5377 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.3407, allocations: 35.47 kB / 0.5377 GB, free: 7.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.3407, allocations: 4 kB / 0.5377 GB, free: 7.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002256/0.3409, allocations: 73.22 kB / 0.5378 GB, free: 7.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.341, allocations: 52.69 kB / 0.5378 GB, free: 7.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.3414, allocations: 321.1 kB / 0.5381 GB, free: 7.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.3414, allocations: 26.58 kB / 0.5382 GB, free: 7.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.3416, allocations: 243.6 kB / 0.5384 GB, free: 7.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.3417, allocations: 10.89 kB / 0.5384 GB, free: 7.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3418, allocations: 52.84 kB / 0.5385 GB, free: 7.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3419, allocations: 338.9 kB / 0.5388 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.3421, allocations: 64.41 kB / 0.5389 GB, free: 6.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.3423, allocations: 88.56 kB / 0.5389 GB, free: 6.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.3425, allocations: 127.4 kB / 0.5391 GB, free: 6.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3425, allocations: 0.9062 kB / 0.5391 GB, free: 6.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004137/0.3429, allocations: 239.3 kB / 0.5393 GB, free: 6.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3429, allocations: 8.969 kB / 0.5393 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.343, allocations: 0 / 0.5393 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.343, allocations: 2.406 kB / 0.5393 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/0.3433, allocations: 56.45 kB / 0.5394 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.3433, allocations: 2.25 kB / 0.5394 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.3436, allocations: 33.64 kB / 0.5394 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.3436, allocations: 10.34 kB / 0.5394 GB, free: 6.414 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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.3438, allocations: 134.8 kB / 0.5395 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.3438, allocations: 29.28 kB / 0.5396 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.772e-05/0.3439, allocations: 19.28 kB / 0.5396 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3439, allocations: 1.062 kB / 0.5396 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.3439, allocations: 7.922 kB / 0.5396 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3439, allocations: 1.031 kB / 0.5396 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000701/0.3446, allocations: 0.5058 MB / 0.5401 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.3446, allocations: 0 / 0.5401 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-05/0.3447, allocations: 14.91 kB / 0.5401 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3447, allocations: 1 kB / 0.5401 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.3447, allocations: 1.094 kB / 0.5401 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3447, allocations: 1 kB / 0.5401 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3447, allocations: 1.031 kB / 0.5401 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.3449, allocations: 99.55 kB / 0.5402 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.705e-05/0.345, allocations: 110.3 kB / 0.5403 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.345, allocations: 1.094 kB / 0.5403 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3451, allocations: 1.625 kB / 0.5403 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.3451, allocations: 5.203 kB / 0.5403 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3452, allocations: 1.5 kB / 0.5403 GB, free: 5.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002533/0.3454, allocations: 226.4 kB / 0.5405 GB, free: 5.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.304e-06/0.3454, allocations: 0 / 0.5405 GB, free: 5.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.3457, allocations: 68.92 kB / 0.5406 GB, free: 5.336 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004695/0.3462, allocations: 0.6285 MB / 0.5412 GB, free: 4.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.3465, allocations: 113.1 kB / 0.5413 GB, free: 4.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3465, allocations: 0 / 0.5413 GB, free: 4.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/0.3465, allocations: 18.17 kB / 0.5413 GB, free: 4.652 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.3469, allocations: 29.09 kB / 0.5413 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.3501, allocations: 2.234 MB / 0.5435 GB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.3506, allocations: 0.7396 MB / 0.5443 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.3508, allocations: 23.25 kB / 0.5443 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3509, allocations: 73.09 kB / 0.5443 GB, free: 2.105 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3509, allocations: 0 / 0.5443 GB, free: 2.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.3779, allocations: 4.166 MB / 0.5484 GB, free: 15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/8.664, allocations: 8.391 kB / 0.5484 GB, free: 15 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches