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.001107/0.001107, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2229/0.2229, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 72.64 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1362, allocations: 62.45 MB / 480.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004373/0.1406, allocations: 2.361 MB / 482.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1422, allocations: 0.6622 MB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.1425, allocations: 4 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.1427, allocations: 35.59 kB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.143, allocations: 75.33 kB / 483.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.1434, allocations: 99.81 kB / 483.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004296/0.1438, allocations: 339.2 kB / 483.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.1442, allocations: 159.4 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.1445, allocations: 135.6 kB / 484 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1448, allocations: 151.4 kB / 484.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.176e-05/0.1449, allocations: 32 kB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.145, allocations: 39.98 kB / 484.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.456e-05/0.145, allocations: 79.69 kB / 484.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.1452, allocations: 163.2 kB / 484.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.1456, allocations: 374.9 kB / 484.8 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1457, allocations: 0 / 484.8 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1457, allocations: 3.938 kB / 484.8 MB, free: 456 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.1457, allocations: 0 / 484.8 MB, free: 456 kB / 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.001023/0.1467, allocations: 0.5733 MB / 485.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1468, allocations: 12.03 kB / 485.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.78e-05/0.1469, allocations: 70.72 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003136/0.1472, allocations: 48.55 kB / 485.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1474, allocations: 202.4 kB / 485.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/0.1475, allocations: 29.22 kB / 485.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.1475, allocations: 32.38 kB / 485.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.148, allocations: 282 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.148, allocations: 0 / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.1481, allocations: 16 kB / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1481, allocations: 8 kB / 486.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.1485, allocations: 214.5 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.1504, allocations: 1.024 MB / 487.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.435e-05/0.1505, allocations: 26.58 kB / 487.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.973e-05/0.1505, allocations: 28.91 kB / 487.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1505, allocations: 4 kB / 487.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1506, allocations: 46.36 kB / 487.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.1506, allocations: 4 kB / 487.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002181/0.1508, allocations: 73.42 kB / 487.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.1509, allocations: 51.41 kB / 487.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000434/0.1513, allocations: 318.8 kB / 487.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1513, allocations: 29.7 kB / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1515, allocations: 234.8 kB / 488.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.1515, allocations: 15.89 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-05/0.1516, allocations: 53.73 kB / 488.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1517, allocations: 338.8 kB / 488.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.1519, allocations: 67.97 kB / 488.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.152, allocations: 93.62 kB / 488.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.1523, allocations: 113.7 kB / 488.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1523, allocations: 0 / 488.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000422/0.1527, allocations: 245.8 kB / 489 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1528, allocations: 10.28 kB / 489 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1528, allocations: 4 kB / 489 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1528, allocations: 0 / 489 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.1531, allocations: 59.89 kB / 489.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1531, allocations: 4 kB / 489.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.1534, allocations: 39.53 kB / 489.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1534, allocations: 7.984 kB / 489.1 MB, free: 11.88 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.0001128/0.1535, allocations: 125.8 kB / 489.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.1536, allocations: 31.72 kB / 489.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.1536, allocations: 24.83 kB / 489.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1536, allocations: 4 kB / 489.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1537, allocations: 0 / 489.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1537, allocations: 0 / 489.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006232/0.1543, allocations: 0.5032 MB / 489.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.1543, allocations: 8 kB / 489.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.381e-05/0.1544, allocations: 8 kB / 489.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.1544, allocations: 4 kB / 489.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.1544, allocations: 0 / 489.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.1544, allocations: 0 / 489.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1544, allocations: 7.922 kB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.1545, allocations: 93.75 kB / 489.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.735e-05/0.1546, allocations: 100.8 kB / 490 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.1547, allocations: 8.031 kB / 490.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.1548, allocations: 7.984 kB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.1548, allocations: 0 / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.1548, allocations: 0 / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.1551, allocations: 225.9 kB / 490.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1551, allocations: 0 / 490.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1554, allocations: 67.83 kB / 490.3 MB, free: 10.55 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.0004107/0.1558, allocations: 0.6286 MB / 491 MB, free: 9.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002741/0.1561, allocations: 123.9 kB / 491.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1561, allocations: 0 / 491.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.195e-05/0.1561, allocations: 7.938 kB / 491.1 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.1565, allocations: 29.09 kB / 491.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.1592, allocations: 2.227 MB / 493.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.1597, allocations: 0.744 MB / 494.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.1598, allocations: 21.94 kB / 494.1 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.1599, allocations: 79.41 kB / 494.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1599, allocations: 0 / 494.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.1866, allocations: 4.048 MB / 498.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/7.824, allocations: 13.12 kB / 498.3 MB, free: 2.566 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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