Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001482/0.001482, allocations: 104.8 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.001796/0.001796, 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.374/1.374, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 58.81 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1132, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006995/0.1203, allocations: 5.25 MB / 362.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.1236, allocations: 1.732 MB / 364.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000692/0.1244, allocations: 16 kB / 364.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.1279, allocations: 1.411 MB / 366 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.1292, allocations: 317.6 kB / 366.3 MB, free: 5.211 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.1309, allocations: 0.6463 MB / 367 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.132, allocations: 0.8088 MB / 367.8 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.1334, allocations: 0.7616 MB / 368.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005329/0.1339, allocations: 354.7 kB / 368.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006945/0.1346, allocations: 466.1 kB / 369.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001958/0.1349, allocations: 76 kB / 369.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006747/0.1355, allocations: 263.8 kB / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.1357, allocations: 179.3 kB / 369.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004634/0.1362, allocations: 421.9 kB / 370.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001306/0.1375, allocations: 1.184 MB / 371.4 MB, free: 60 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1375, allocations: 3.938 kB / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1375, allocations: 0 / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.771e-05/0.1376, allocations: 4 kB / 371.4 MB, free: 52 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.1468/0.2844, allocations: 1.451 MB / 372.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.2845, allocations: 11.31 kB / 372.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000378/0.2849, allocations: 147.4 kB / 373 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.2869, allocations: 256.9 kB / 373.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2872, allocations: 260.8 kB / 373.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.2874, allocations: 73.19 kB / 373.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.2876, allocations: 105.5 kB / 373.7 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.2897, allocations: 0.9364 MB / 374.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.795e-05/0.2898, allocations: 6.828 kB / 374.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-05/0.2899, allocations: 40.84 kB / 374.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.862e-05/0.2899, allocations: 23.78 kB / 374.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.2917, allocations: 0.781 MB / 375.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005941/0.2976, allocations: 3.621 MB / 379.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.2998, allocations: 1.253 MB / 380.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/0.3004, allocations: 371 kB / 380.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.3005, allocations: 185.7 kB / 380.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.3006, allocations: 47.94 kB / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.347e-06/0.3006, allocations: 0 / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002133/0.3027, allocations: 1.303 MB / 382.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.3028, allocations: 92.84 kB / 382.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004177/0.3032, allocations: 368 kB / 382.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.3032, allocations: 37.08 kB / 382.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.3034, allocations: 385.4 kB / 383.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.3036, allocations: 302.7 kB / 383.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.3039, allocations: 174.1 kB / 383.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.205e-05/0.304, allocations: 362.3 kB / 384 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004659/0.3044, allocations: 263.2 kB / 384.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.3051, allocations: 471.5 kB / 384.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.3061, allocations: 0.7713 MB / 385.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.525e-06/0.3062, allocations: 6.156 kB / 385.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00168/0.3078, allocations: 0.9762 MB / 386.4 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.3079, allocations: 7.031 kB / 386.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.3079, allocations: 5.984 kB / 386.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/0.3083, allocations: 124.2 kB / 386.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008398/0.3092, allocations: 207.2 kB / 386.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.3124, allocations: 6.106 MB / 392.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006823/0.3131, allocations: 106.5 kB / 393 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.092e-05/0.3132, allocations: 40.17 kB / 393 MB, free: 5.738 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000343/0.3136, allocations: 238.6 kB / 393.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.3137, allocations: 54.17 kB / 393.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.3152, allocations: 0.8508 MB / 394.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.3152, allocations: 12.97 kB / 394.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3152, allocations: 3.938 kB / 394.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.3152, allocations: 7.125 kB / 394.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003058/0.3183, allocations: 2.094 MB / 396.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.3183, allocations: 1.469 kB / 396.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.3189, allocations: 140.5 kB / 396.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002741/0.3192, allocations: 110.6 kB / 396.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/0.3192, allocations: 21.12 kB / 396.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.3225, allocations: 5.707 MB / 402.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.3225, allocations: 7.672 kB / 402.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.3244, allocations: 1.267 MB / 403.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.3247, allocations: 150.8 kB / 403.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.017e-05/0.3247, allocations: 14.56 kB / 403.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.3251, allocations: 25.38 kB / 403.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3253, allocations: 61.39 kB / 403.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.3253, allocations: 31.23 kB / 403.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.3256, allocations: 251.9 kB / 404 MB, free: 12.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3256, allocations: 0 / 404 MB, free: 12.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001045/0.3267, allocations: 273 kB / 404.3 MB, free: 12.62 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002326/0.329, allocations: 1.87 MB / 406.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002218/0.3313, allocations: 1.205 MB / 407.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3313, allocations: 0 / 407.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.3323, allocations: 0.7925 MB / 408.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006921/0.333, allocations: 61.55 kB / 408.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007743/0.3408, allocations: 5.78 MB / 414 MB, free: 4.449 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.3413, allocations: 0.9149 MB / 414.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000565/0.3419, allocations: 101.1 kB / 415 MB, free: 3.402 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/0.3422, allocations: 251.3 kB / 415.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3422, allocations: 0 / 415.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.3807, allocations: 12.59 MB / 427.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.567/9.947, allocations: 6.484 kB / 427.9 MB, free: 6.754 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches