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.001211/0.001211, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 46.1 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 78.84 kB / 416.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1047, allocations: 62.45 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004471/0.1092, allocations: 2.407 MB / 481.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1107, allocations: 0.6584 MB / 482.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.111, allocations: 4 kB / 482.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1111, allocations: 35.7 kB / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000255/0.1114, allocations: 55.53 kB / 482.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1117, allocations: 79.92 kB / 482.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003566/0.1121, allocations: 327.3 kB / 482.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.1123, allocations: 135.9 kB / 483.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.1127, allocations: 131.5 kB / 483.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1129, allocations: 155.4 kB / 483.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.113, allocations: 20 kB / 483.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.845e-05/0.1131, allocations: 28 kB / 483.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.1132, allocations: 59.81 kB / 483.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.1133, allocations: 147.3 kB / 483.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1137, allocations: 374.9 kB / 484 MB, free: 1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1137, allocations: 0 / 484 MB, free: 1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1137, allocations: 0 / 484 MB, free: 1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1137, allocations: 0 / 484 MB, free: 1 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.000954/0.1147, allocations: 0.5734 MB / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1147, allocations: 8.875 kB / 484.6 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.192e-05/0.1148, allocations: 70.72 kB / 484.6 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.1151, allocations: 44.55 kB / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.1153, allocations: 207.9 kB / 484.9 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.1154, allocations: 25.3 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.1155, allocations: 36.31 kB / 484.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.116, allocations: 290 kB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.116, allocations: 0 / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.116, allocations: 12 kB / 485.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.116, allocations: 8 kB / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.1165, allocations: 210.5 kB / 485.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1183, allocations: 1.032 MB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.728e-05/0.1184, allocations: 30.58 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.441e-05/0.1184, allocations: 24.91 kB / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1184, allocations: 4 kB / 486.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1185, allocations: 34.5 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.492e-06/0.1185, allocations: 4 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002171/0.1187, allocations: 77.36 kB / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.1187, allocations: 51.41 kB / 486.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.1191, allocations: 322.8 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1191, allocations: 25.7 kB / 487 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1193, allocations: 234.8 kB / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1193, allocations: 15.89 kB / 487.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.1194, allocations: 53.61 kB / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1195, allocations: 338.9 kB / 487.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.1197, allocations: 67.97 kB / 487.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1198, allocations: 81.69 kB / 487.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.12, allocations: 127.1 kB / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.12, allocations: 4 kB / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003894/0.1204, allocations: 233.4 kB / 488.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1205, allocations: 7.938 kB / 488.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1205, allocations: 4 kB / 488.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.1205, allocations: 0 / 488.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.1208, allocations: 59.89 kB / 488.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1208, allocations: 4 kB / 488.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.1211, allocations: 39.53 kB / 488.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.1211, allocations: 8 kB / 488.3 MB, free: 12.44 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 0.0001125/0.1212, allocations: 137.8 kB / 488.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.534e-05/0.1212, allocations: 23.75 kB / 488.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.1213, allocations: 24.83 kB / 488.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1213, allocations: 4 kB / 488.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1213, allocations: 0 / 488.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1213, allocations: 0 / 488.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.1219, allocations: 0.511 MB / 489 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1219, allocations: 0 / 489 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-05/0.1219, allocations: 64 / 489 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.122, allocations: 8 kB / 489 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.122, allocations: 0 / 489 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.122, allocations: 0 / 489 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.122, allocations: 4 kB / 489 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.1221, allocations: 105.7 kB / 489.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.1222, allocations: 100.8 kB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.1222, allocations: 4.031 kB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.1224, allocations: 11.92 kB / 489.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.1224, allocations: 0 / 489.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.1224, allocations: 0 / 489.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.1226, allocations: 226 kB / 489.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1227, allocations: 0 / 489.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.1229, allocations: 63.84 kB / 489.5 MB, free: 11.11 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.0003358/0.1233, allocations: 0.6364 MB / 490.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002423/0.1235, allocations: 119.9 kB / 490.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1235, allocations: 0 / 490.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.344e-05/0.1236, allocations: 8 kB / 490.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.1239, allocations: 29.09 kB / 490.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.1265, allocations: 2.334 MB / 492.6 MB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.1268, allocations: 0.7365 MB / 493.4 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.1269, allocations: 29.92 kB / 493.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.127, allocations: 71.41 kB / 493.5 MB, free: 7 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.127, allocations: 0 / 493.5 MB, free: 7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01394/0.141, allocations: 3.875 MB / 497.3 MB, free: 3.238 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.1412, allocations: 199.6 kB / 497.5 MB, free: 2.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/1.936, allocations: 0 / 497.5 MB, free: 2.984 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