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.0009569/0.000957, allocations: 93.33 kB / 17.35 MB, free: 6.371 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.0009086/0.0009086, allocations: 179.4 kB / 18.26 MB, free: 5.52 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.203/1.203, allocations: 223.2 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1666/0.1666, allocations: 44.25 MB / 337.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003157/0.0003158, allocations: 8.281 kB / 410.4 MB, free: 27.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09822, allocations: 61.92 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003406/0.1017, allocations: 2.035 MB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1031, allocations: 0.604 MB / 475 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.1033, allocations: 4 kB / 475 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.972e-05/0.1034, allocations: 27.77 kB / 475 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002268/0.1036, allocations: 63.45 kB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.1038, allocations: 75.94 kB / 475.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1042, allocations: 323.3 kB / 475.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.1044, allocations: 135.9 kB / 475.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1046, allocations: 107.6 kB / 475.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.1048, allocations: 131.4 kB / 475.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.1048, allocations: 20 kB / 475.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.565e-05/0.1049, allocations: 20 kB / 475.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.786e-05/0.1049, allocations: 51.77 kB / 475.9 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1051, allocations: 157 kB / 476.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003025/0.1054, allocations: 358.8 kB / 476.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1054, allocations: 0 / 476.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1054, allocations: 0 / 476.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1054, allocations: 0 / 476.4 MB, free: 9.105 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.0008681/0.1063, allocations: 0.5304 MB / 477 MB, free: 8.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.1063, allocations: 12.03 kB / 477 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.476e-05/0.1064, allocations: 66.72 kB / 477 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.134e-05/0.1065, allocations: 32.56 kB / 477.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.1067, allocations: 200 kB / 477.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-05/0.1068, allocations: 33.2 kB / 477.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.1069, allocations: 32.38 kB / 477.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.1074, allocations: 282 kB / 477.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1074, allocations: 0 / 477.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.1075, allocations: 12 kB / 477.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.1075, allocations: 8 kB / 477.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.1079, allocations: 218.5 kB / 477.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.1095, allocations: 1.032 MB / 478.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.795e-05/0.1096, allocations: 30.56 kB / 478.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.002e-05/0.1096, allocations: 28.92 kB / 478.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.1096, allocations: 0 / 478.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.1097, allocations: 38.5 kB / 479 MB, free: 6.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.1097, allocations: 0 / 479 MB, free: 6.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001951/0.1099, allocations: 77.39 kB / 479 MB, free: 6.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.1099, allocations: 55.39 kB / 479.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.1103, allocations: 322.8 kB / 479.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.1103, allocations: 25.7 kB / 479.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.1105, allocations: 226.9 kB / 479.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.1105, allocations: 15.97 kB / 479.7 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/0.1105, allocations: 33.7 kB / 479.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1106, allocations: 326.8 kB / 480 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1108, allocations: 63.97 kB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.1109, allocations: 98.67 kB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.1111, allocations: 122.1 kB / 480.3 MB, free: 4.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1111, allocations: 8 kB / 480.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003847/0.1115, allocations: 237.3 kB / 480.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1115, allocations: 11.88 kB / 480.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1116, allocations: 3.938 kB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1116, allocations: 4 kB / 480.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.1119, allocations: 51.97 kB / 480.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1119, allocations: 4 kB / 480.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.1121, allocations: 39.58 kB / 480.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.1121, allocations: 8.031 kB / 480.7 MB, free: 4.621 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.0001173/0.1123, allocations: 133.8 kB / 480.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.1123, allocations: 27.66 kB / 480.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.414e-05/0.1124, allocations: 24.84 kB / 480.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1124, allocations: 0 / 480.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.1124, allocations: 0 / 480.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.1124, allocations: 0 / 480.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005841/0.113, allocations: 0.5227 MB / 481.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.113, allocations: 0 / 481.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.115e-05/0.113, allocations: 4 kB / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.113, allocations: 0 / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-06/0.113, allocations: 0 / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.113, allocations: 0 / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.113, allocations: 3.938 kB / 481.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.1132, allocations: 105.7 kB / 481.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.827e-05/0.1132, allocations: 100.9 kB / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.1133, allocations: 4 kB / 481.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.1134, allocations: 0 / 481.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.168e-05/0.1134, allocations: 0 / 481.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.1134, allocations: 4 kB / 481.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000237/0.1137, allocations: 225.9 kB / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1137, allocations: 4.031 kB / 481.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.1139, allocations: 63.84 kB / 481.9 MB, free: 3.297 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.000342/0.1143, allocations: 0.6368 MB / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002326/0.1145, allocations: 123.9 kB / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1145, allocations: 0 / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.342e-05/0.1146, allocations: 11.98 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.1148, allocations: 23.06 kB / 482.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.1173, allocations: 2.357 MB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1176, allocations: 0.7404 MB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.1177, 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 0.0001009/0.1178, allocations: 79.34 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1178, allocations: 0 / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.1375, allocations: 3.787 MB / 489.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.1378, allocations: 198.8 kB / 489.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.772, allocations: 0 / 489.8 MB, free: 11.25 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","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches