Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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) 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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 114.9 kB / 17.74 MB, free: 5.328 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.001155/0.001155, allocations: 188.5 kB / 18.67 MB, free: 4.402 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.301/1.301, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 43.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2651, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003925/0.269, allocations: 2.829 MB / 404.2 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.2708, allocations: 1.153 MB / 405.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.2709, allocations: 8 kB / 405.4 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.2723, allocations: 0.6203 MB / 406 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.2726, allocations: 139 kB / 406.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.2738, allocations: 0.6753 MB / 406.8 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.2742, allocations: 294.6 kB / 407.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004348/0.2746, allocations: 270.6 kB / 407.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.2748, allocations: 139.4 kB / 407.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.275, allocations: 167.4 kB / 407.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.2751, allocations: 27.94 kB / 407.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.2754, allocations: 179.8 kB / 407.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.463e-05/0.2754, allocations: 63.7 kB / 407.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.2756, allocations: 139.4 kB / 408.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005398/0.2761, allocations: 0.4958 MB / 408.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2761, allocations: 0 / 408.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2761, allocations: 0 / 408.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.2761, allocations: 0 / 408.6 MB, free: 1.664 MB / 318.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.001559/0.2777, allocations: 0.7249 MB / 409.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2777, allocations: 11.97 kB / 409.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000793/0.2785, allocations: 112.5 kB / 409.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.2789, allocations: 264.5 kB / 409.7 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2789, allocations: 29.03 kB / 409.7 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.243e-05/0.279, allocations: 32.28 kB / 409.7 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.2795, allocations: 333 kB / 410.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.2795, allocations: 4 kB / 410.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.2796, allocations: 8 kB / 410.1 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2796, allocations: 8 kB / 410.1 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003877/0.28, allocations: 250.5 kB / 410.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.2818, allocations: 1.439 MB / 411.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/0.2825, allocations: 0.7047 MB / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.2826, allocations: 104.8 kB / 412.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.2827, allocations: 97.02 kB / 412.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.2827, allocations: 30.56 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2828, allocations: 0 / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001166/0.2839, allocations: 0.4912 MB / 413.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.284, allocations: 51.41 kB / 413.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.2841, allocations: 172 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.2842, allocations: 33.7 kB / 413.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2843, allocations: 172 kB / 413.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.544e-05/0.2843, allocations: 82.77 kB / 413.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.172e-05/0.2844, allocations: 49.98 kB / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2845, allocations: 330.8 kB / 414.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.2847, allocations: 72.53 kB / 414.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.2848, allocations: 125 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.2851, allocations: 212.1 kB / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2851, allocations: 0 / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005248/0.2856, allocations: 340.5 kB / 414.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2857, allocations: 8 kB / 414.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2857, allocations: 3.938 kB / 414.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000312/0.286, allocations: 72.8 kB / 414.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.2862, allocations: 55.95 kB / 414.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.288, allocations: 2.021 MB / 417 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.2882, allocations: 31.69 kB / 417 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.2882, allocations: 8 kB / 417 MB, free: 8.586 MB / 334.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.0001405/0.2883, allocations: 145.7 kB / 417.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.2884, allocations: 23.81 kB / 417.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005171/0.2889, allocations: 292 kB / 417.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2889, allocations: 4 kB / 417.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2889, allocations: 0 / 417.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2889, allocations: 4 kB / 417.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009255/0.2899, allocations: 0.6895 MB / 418.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2899, allocations: 4 kB / 418.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.29, allocations: 27.98 kB / 418.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000229/0.2902, allocations: 72.69 kB / 418.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.2903, allocations: 8 kB / 418.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001753/0.292, allocations: 2.018 MB / 420.3 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.292, allocations: 0 / 420.3 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005977/0.2926, allocations: 448.5 kB / 420.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.804e-05/0.2928, allocations: 108.9 kB / 420.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.2928, allocations: 7.938 kB / 420.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.2929, allocations: 8 kB / 420.8 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.293, allocations: 19.97 kB / 420.8 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.293, allocations: 4 kB / 420.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.2931, allocations: 131.5 kB / 421 MB, free: 4.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2931, allocations: 0 / 421 MB, free: 4.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004936/0.2936, allocations: 95.95 kB / 421.1 MB, free: 4.242 MB / 334.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.0002116/0.2938, allocations: 119.3 kB / 421.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006359/0.2944, allocations: 370.2 kB / 421.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.2945, allocations: 7.875 kB / 421.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.2948, allocations: 245 kB / 421.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.2951, allocations: 21.91 kB / 421.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.2961, allocations: 0.5998 MB / 422.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.2964, allocations: 0.756 MB / 423.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.2965, allocations: 23.44 kB / 423.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2965, allocations: 4 kB / 423.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of Templates: time 0.005486/0.302, allocations: 4.018 MB / 427.2 MB, free: 14.01 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches