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.001178/0.001178, allocations: 119.5 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001266, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 72.16 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3296, allocations: 62.45 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003642/0.3333, allocations: 2.362 MB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.3346, allocations: 0.6684 MB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.3347, allocations: 4.125 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.993e-05/0.3349, allocations: 35.72 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.3351, allocations: 75.58 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.3354, allocations: 92.06 kB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003536/0.3357, allocations: 341.9 kB / 0.534 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.336, allocations: 169.7 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.3363, allocations: 142.5 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.3365, allocations: 154.1 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.112e-05/0.3366, allocations: 36.5 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.03e-05/0.3367, allocations: 34.38 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.3368, allocations: 72.88 kB / 0.5346 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.3369, allocations: 154.1 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.3373, allocations: 376.4 kB / 0.5351 GB, free: 9.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3374, allocations: 4 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3374, allocations: 3.938 kB / 0.5351 GB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3374, allocations: 1.375 kB / 0.5351 GB, free: 9.879 MB / 398.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.0009205/0.3383, allocations: 0.5866 MB / 0.5357 GB, free: 9.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3383, allocations: 9.625 kB / 0.5357 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.949e-05/0.3384, allocations: 68.34 kB / 0.5357 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.3387, allocations: 49.44 kB / 0.5358 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.3389, allocations: 203.5 kB / 0.536 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.3389, allocations: 25.25 kB / 0.536 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.339, allocations: 28.16 kB / 0.536 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.3395, allocations: 281.7 kB / 0.5363 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3395, allocations: 1.031 kB / 0.5363 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.3395, allocations: 18.88 kB / 0.5363 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3395, allocations: 7.281 kB / 0.5363 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004047/0.34, allocations: 210.9 kB / 0.5365 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.3418, allocations: 1.028 MB / 0.5375 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.3419, allocations: 31.17 kB / 0.5376 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.267e-05/0.342, allocations: 28.47 kB / 0.5376 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.342, allocations: 1.031 kB / 0.5376 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.342, allocations: 34.56 kB / 0.5376 GB, free: 7.816 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.392e-06/0.3421, allocations: 1.062 kB / 0.5376 GB, free: 7.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002424/0.3423, allocations: 73.36 kB / 0.5377 GB, free: 7.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.3423, allocations: 51.41 kB / 0.5377 GB, free: 7.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.3428, allocations: 325.6 kB / 0.5381 GB, free: 7.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.3428, allocations: 27.17 kB / 0.5381 GB, free: 7.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3429, allocations: 238.9 kB / 0.5383 GB, free: 7.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.343, allocations: 14.56 kB / 0.5383 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3431, allocations: 60.19 kB / 0.5384 GB, free: 7.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3432, allocations: 332.2 kB / 0.5387 GB, free: 6.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3434, allocations: 60.45 kB / 0.5388 GB, free: 6.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3435, allocations: 88.55 kB / 0.5388 GB, free: 6.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.3438, allocations: 123.5 kB / 0.539 GB, free: 6.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3438, allocations: 0 / 0.539 GB, free: 6.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004027/0.3442, allocations: 239.4 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3442, allocations: 9.656 kB / 0.5392 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3442, allocations: 3.984 kB / 0.5392 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3442, allocations: 2.125 kB / 0.5392 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.3445, allocations: 49.03 kB / 0.5392 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3445, allocations: 1.188 kB / 0.5392 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.3448, allocations: 46.41 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.3448, allocations: 10.34 kB / 0.5393 GB, free: 6.5 MB / 398.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.0001347/0.345, allocations: 134.4 kB / 0.5394 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.502e-05/0.345, allocations: 26.39 kB / 0.5395 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.3451, allocations: 22.64 kB / 0.5395 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3451, allocations: 0 / 0.5395 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3451, allocations: 1.281 kB / 0.5395 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3451, allocations: 3.938 kB / 0.5395 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006019/0.3457, allocations: 0.5059 MB / 0.54 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3457, allocations: 4.938 kB / 0.54 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.994e-05/0.3457, allocations: 3.062 kB / 0.54 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3458, allocations: 0.9062 kB / 0.54 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.3458, allocations: 5.047 kB / 0.54 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3458, allocations: 3.938 kB / 0.54 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3458, allocations: 1.125 kB / 0.54 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.346, allocations: 108 kB / 0.5401 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.219e-05/0.346, allocations: 106.7 kB / 0.5402 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.3461, allocations: 1.375 kB / 0.5402 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.3462, allocations: 5.234 kB / 0.5402 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.3462, allocations: 1.344 kB / 0.5402 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.3462, allocations: 0 / 0.5402 GB, free: 5.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.3465, allocations: 223.5 kB / 0.5404 GB, free: 5.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3465, allocations: 0 / 0.5404 GB, free: 5.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.3468, allocations: 65.11 kB / 0.5405 GB, free: 5.43 MB / 398.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.0004845/0.3473, allocations: 0.6324 MB / 0.5411 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3476, allocations: 117.5 kB / 0.5412 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3476, allocations: 0 / 0.5412 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.874e-05/0.3477, allocations: 19.03 kB / 0.5412 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.348, allocations: 23.84 kB / 0.5412 GB, free: 4.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.3509, allocations: 2.234 MB / 0.5434 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.3512, allocations: 0.743 MB / 0.5442 GB, free: 2.266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.3513, allocations: 20.61 kB / 0.5442 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3515, allocations: 76.81 kB / 0.5442 GB, free: 2.191 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3515, allocations: 0 / 0.5442 GB, free: 2.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.3735, allocations: 4.163 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.902/8.275, allocations: 5.406 kB / 0.5483 GB, free: 15.12 MB / 414.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