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.001312/0.001312, allocations: 109.3 kB / 17.32 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 201.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1898/0.1898, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 76.92 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.09206, allocations: 62.45 MB / 479.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003118/0.0952, allocations: 2.414 MB / 482 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.09621, allocations: 0.6506 MB / 482.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.09633, allocations: 4 kB / 482.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.131e-05/0.09645, allocations: 27.78 kB / 482.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.09662, allocations: 59.52 kB / 482.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.09688, allocations: 79.86 kB / 482.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.09718, allocations: 339.3 kB / 483.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.09741, allocations: 163.4 kB / 483.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.09764, allocations: 143.6 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.09782, allocations: 155.4 kB / 483.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.09786, allocations: 32 kB / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.712e-05/0.09794, allocations: 36 kB / 483.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.779e-05/0.09799, allocations: 79.69 kB / 483.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.09811, allocations: 155.3 kB / 483.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.0984, allocations: 378.9 kB / 484.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09842, allocations: 0 / 484.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09842, allocations: 3.938 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.09844, allocations: 0 / 484.3 MB, free: 0.8008 MB / 350.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.0007674/0.09921, allocations: 0.5811 MB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.09925, allocations: 8.031 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.19e-05/0.09931, allocations: 70.72 kB / 484.9 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002595/0.09958, allocations: 44.55 kB / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.09974, allocations: 203.9 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-05/0.09983, allocations: 29.2 kB / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.09988, allocations: 36.36 kB / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.1003, allocations: 278 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1003, allocations: 0 / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.1004, allocations: 15.98 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1004, allocations: 8 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.1007, allocations: 214.5 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.1022, allocations: 1.028 MB / 486.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.925e-05/0.1022, allocations: 26.58 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.545e-05/0.1023, allocations: 28.86 kB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.1023, allocations: 0 / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.1023, allocations: 34.5 kB / 486.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 2.003e-06/0.1023, allocations: 0 / 486.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001675/0.1025, allocations: 85.34 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.1025, allocations: 51.41 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.1029, allocations: 322.8 kB / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.1029, allocations: 29.7 kB / 487.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.103, allocations: 226.8 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.048e-05/0.103, allocations: 11.91 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.816e-05/0.1031, allocations: 57.59 kB / 487.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.1032, allocations: 331 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1033, allocations: 67.97 kB / 488 MB, free: 12.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1035, allocations: 89.67 kB / 488.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.1036, allocations: 131.1 kB / 488.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1036, allocations: 0 / 488.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003453/0.104, allocations: 233.3 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.104, allocations: 14.94 kB / 488.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.104, allocations: 0 / 488.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.104, allocations: 4 kB / 488.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.1043, allocations: 55.95 kB / 488.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.1043, allocations: 3.938 kB / 488.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.1046, allocations: 47.45 kB / 488.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.1046, allocations: 8 kB / 488.6 MB, free: 12.24 MB / 366.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 9.222e-05/0.1047, allocations: 129.8 kB / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.1047, allocations: 19.75 kB / 488.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.759e-05/0.1048, allocations: 28.89 kB / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1048, allocations: 0 / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1048, allocations: 0 / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1048, allocations: 0 / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.1053, allocations: 0.511 MB / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1053, allocations: 0 / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/0.1053, allocations: 4 kB / 489.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1053, allocations: 4.062 kB / 489.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.1053, allocations: 7.875 kB / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1053, allocations: 4 kB / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1054, allocations: 0 / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1055, allocations: 101.7 kB / 489.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.1055, allocations: 104.8 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.1056, allocations: 0 / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1057, allocations: 8.031 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.526e-05/0.1057, allocations: 4 kB / 489.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.1057, allocations: 0 / 489.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002086/0.1059, allocations: 221.9 kB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1059, allocations: 4 kB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000235/0.1062, allocations: 63.84 kB / 489.8 MB, free: 10.92 MB / 366.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.0002922/0.1065, allocations: 0.6364 MB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.1067, allocations: 119.9 kB / 490.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.1067, allocations: 0 / 490.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.31e-05/0.1067, allocations: 15.94 kB / 490.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.107, allocations: 23.52 kB / 490.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.1092, allocations: 2.321 MB / 492.9 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.1094, allocations: 0.7517 MB / 493.7 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1095, allocations: 25.92 kB / 493.7 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.198e-05/0.1096, allocations: 75.42 kB / 493.8 MB, free: 6.801 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1096, allocations: 0 / 493.8 MB, free: 6.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.51/1.62, allocations: 3.97 MB / 497.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002452/1.62, allocations: 202.5 kB / 497.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/3.879, allocations: 0 / 497.9 MB, free: 2.703 MB / 366.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