Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 64.31 kB / 307.1 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09458/0.09592, allocations: 50.54 MB / 357.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004414/0.1004, allocations: 2.843 MB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.1024, allocations: 1.203 MB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.1027, allocations: 8 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.1042, allocations: 0.6106 MB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004123/0.1046, allocations: 139 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.106, allocations: 0.657 MB / 363.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.1064, allocations: 294.7 kB / 363.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005149/0.107, allocations: 275 kB / 363.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.1072, allocations: 131.5 kB / 363.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.1075, allocations: 167.4 kB / 363.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.1076, allocations: 28 kB / 363.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004141/0.108, allocations: 187.8 kB / 364.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.1081, allocations: 63.77 kB / 364.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1082, allocations: 147.3 kB / 364.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006721/0.1089, allocations: 0.4946 MB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1089, allocations: 0 / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.109, allocations: 0 / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.109, allocations: 0 / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001761/0.1107, allocations: 0.7255 MB / 365.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1108, allocations: 8.031 kB / 365.5 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.41e-05/0.1109, allocations: 70.72 kB / 365.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009083/0.1118, allocations: 120.5 kB / 365.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.1121, allocations: 262.8 kB / 366 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.1122, allocations: 29.03 kB / 366 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.1122, allocations: 36.12 kB / 366.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005052/0.1127, allocations: 341 kB / 366.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1128, allocations: 0 / 366.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1128, allocations: 12 kB / 366.4 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1128, allocations: 8 kB / 366.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003946/0.1132, allocations: 242.5 kB / 366.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.1152, allocations: 1.439 MB / 368.1 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.1159, allocations: 0.6927 MB / 368.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1161, allocations: 108.8 kB / 368.9 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001797/0.1163, allocations: 170.2 kB / 369 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.1163, allocations: 34.56 kB / 369.1 MB, free: 2.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.1163, allocations: 3.938 kB / 369.1 MB, free: 2 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001232/0.1176, allocations: 498.3 kB / 369.6 MB, free: 1.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.1176, allocations: 51.41 kB / 369.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1178, allocations: 176.9 kB / 369.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1178, allocations: 33.7 kB / 369.8 MB, free: 1.199 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.869e-05/0.1179, allocations: 176 kB / 370 MB, free: 1.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.118, allocations: 82.75 kB / 370.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.851e-05/0.1181, allocations: 53.98 kB / 370.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1182, allocations: 334.8 kB / 370.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1183, allocations: 72.47 kB / 370.5 MB, free: 484 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.1185, allocations: 129 kB / 370.7 MB, free: 332 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.1187, allocations: 216.2 kB / 370.9 MB, free: 92 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1188, allocations: 0 / 370.9 MB, free: 92 kB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.164/0.2828, allocations: 332.1 kB / 371.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.2829, allocations: 5.469 kB / 371.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2829, allocations: 3.453 kB / 371.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003164/0.2832, allocations: 76.72 kB / 371.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.2834, allocations: 45.02 kB / 371.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.285, allocations: 2.03 MB / 373.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.2852, allocations: 22.95 kB / 373.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.2852, allocations: 14.77 kB / 373.4 MB, free: 18.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.2853, allocations: 153.9 kB / 373.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.2854, allocations: 17.42 kB / 373.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000538/0.2859, allocations: 280.5 kB / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2859, allocations: 3.172 kB / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.286, allocations: 1.969 kB / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.286, allocations: 12.86 kB / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009007/0.2869, allocations: 0.6898 MB / 374.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2869, allocations: 1.094 kB / 374.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.287, allocations: 32.44 kB / 374.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000241/0.2873, allocations: 72.56 kB / 374.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.2873, allocations: 9.906 kB / 374.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.2889, allocations: 2.02 MB / 376.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2889, allocations: 3.938 kB / 376.7 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006453/0.2895, allocations: 445 kB / 377.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.969e-05/0.2896, allocations: 114.3 kB / 377.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.2897, allocations: 2.062 kB / 377.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.2898, allocations: 12.09 kB / 377.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.2898, allocations: 18.61 kB / 377.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.2898, allocations: 7.656 kB / 377.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.561e-05/0.2899, allocations: 129.8 kB / 377.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2899, allocations: 0 / 377.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004867/0.2904, allocations: 96.25 kB / 377.5 MB, free: 15.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007956/0.2912, allocations: 1.006 MB / 378.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.2918, allocations: 358.1 kB / 378.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.2918, allocations: 1.938 kB / 378.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.2921, allocations: 245.2 kB / 379.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.2925, allocations: 25.48 kB / 379.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.2952, allocations: 2.503 MB / 381.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.2954, allocations: 0.7583 MB / 382.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.2955, allocations: 21.02 kB / 382.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.2956, allocations: 72.88 kB / 382.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2956, allocations: 3.938 kB / 382.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.3216, allocations: 5.01 MB / 387.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.373/9.695, allocations: 10.59 kB / 387.5 MB, free: 11.13 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_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_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches