Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000893/0.0008931, allocations: 94.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008659/0.0008659, allocations: 174.1 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.193/0.193, allocations: 44.24 MB / 337.7 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002762, allocations: 8 kB / 410.4 MB, free: 27.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09246, allocations: 61.92 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002187/0.09468, allocations: 2.035 MB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008695/0.09557, allocations: 0.6079 MB / 475 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.09569, allocations: 8 kB / 475 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.811e-05/0.09576, allocations: 31.77 kB / 475 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.09593, allocations: 51.53 kB / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.09614, allocations: 75.92 kB / 475.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.09642, allocations: 331.2 kB / 475.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.09665, allocations: 123.9 kB / 475.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.09683, allocations: 115.6 kB / 475.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.09701, allocations: 127.4 kB / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.09705, allocations: 20 kB / 475.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.451e-05/0.09709, allocations: 20 kB / 475.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.585e-05/0.09715, allocations: 55.75 kB / 475.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.09727, allocations: 157 kB / 476.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.09755, allocations: 350.9 kB / 476.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.09756, allocations: 0 / 476.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09757, allocations: 0 / 476.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.054e-06/0.09759, allocations: 0 / 476.4 MB, free: 9.117 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.0009139/0.09851, allocations: 0.5305 MB / 477 MB, free: 8.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.09855, allocations: 12.03 kB / 477 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.989e-05/0.09862, allocations: 66.72 kB / 477.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.09868, allocations: 40.5 kB / 477.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.09883, allocations: 196 kB / 477.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.058e-05/0.09892, allocations: 33.16 kB / 477.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.09897, allocations: 32.38 kB / 477.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.09942, allocations: 285.9 kB / 477.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.09944, allocations: 0 / 477.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.09947, allocations: 16 kB / 477.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.09948, allocations: 8 kB / 477.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.09986, allocations: 214.5 kB / 477.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1014, allocations: 1.032 MB / 478.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.055e-05/0.1014, allocations: 30.58 kB / 478.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.98e-05/0.1015, allocations: 28.86 kB / 478.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1015, allocations: 0 / 478.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.1015, allocations: 34.5 kB / 479 MB, free: 6.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1015, allocations: 4 kB / 479 MB, free: 6.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001786/0.1017, allocations: 77.44 kB / 479.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.1017, allocations: 51.41 kB / 479.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.1021, allocations: 326.8 kB / 479.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1021, allocations: 25.7 kB / 479.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1022, allocations: 222.9 kB / 479.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.291e-05/0.1022, allocations: 15.84 kB / 479.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.1023, allocations: 29.7 kB / 479.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.1024, allocations: 334.9 kB / 480 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.1025, allocations: 63.97 kB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.1027, allocations: 94.69 kB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.1028, allocations: 126.1 kB / 480.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1029, allocations: 0 / 480.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003642/0.1032, allocations: 237.4 kB / 480.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1033, allocations: 14.38 kB / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1033, allocations: 0 / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1033, allocations: 4 kB / 480.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.1036, allocations: 59.88 kB / 480.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1036, allocations: 4 kB / 480.6 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.1038, allocations: 35.59 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1038, allocations: 8 kB / 480.7 MB, free: 4.633 MB / 350.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.0001024/0.104, allocations: 141.8 kB / 480.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/0.104, allocations: 23.66 kB / 480.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.954e-05/0.104, allocations: 28.84 kB / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1041, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1041, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-06/0.1041, allocations: 3.984 kB / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.1046, allocations: 0.511 MB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1046, allocations: 0 / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.095e-05/0.1046, allocations: 4 kB / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1047, allocations: 0 / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.1047, allocations: 0 / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1047, allocations: 4 kB / 481.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1047, allocations: 0 / 481.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.1048, allocations: 113.6 kB / 481.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.798e-05/0.1049, allocations: 96.91 kB / 481.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.1049, allocations: 4 kB / 481.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.105, allocations: 0 / 481.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.105, allocations: 3.984 kB / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.105, allocations: 7.938 kB / 481.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002224/0.1053, allocations: 226 kB / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1053, allocations: 0 / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.1055, allocations: 63.84 kB / 481.9 MB, free: 3.301 MB / 350.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.0003173/0.1058, allocations: 0.6369 MB / 482.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.1061, allocations: 119.9 kB / 482.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1061, allocations: 4.094 kB / 482.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.096e-05/0.1061, allocations: 8 kB / 482.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.1064, allocations: 23.12 kB / 482.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.1087, allocations: 2.361 MB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.1089, allocations: 0.7404 MB / 485.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.1091, allocations: 21.94 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.1092, allocations: 71.41 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1092, allocations: 4 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0794/0.1886, allocations: 3.782 MB / 489.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.1888, allocations: 202 kB / 489.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/1.977, allocations: 0 / 489.9 MB, free: 11.26 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches