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.001027/0.001027, allocations: 108.7 kB / 17.06 MB, free: 6.023 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.001011/0.001011, allocations: 192 kB / 18 MB, free: 5.105 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009858/0.0009858, allocations: 43.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3041, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003867/0.308, allocations: 2.837 MB / 403.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3098, allocations: 1.152 MB / 404.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.3099, allocations: 4 kB / 404.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.3114, allocations: 0.6223 MB / 405.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.3117, allocations: 139.1 kB / 405.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.3129, allocations: 0.6829 MB / 406.2 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.3133, allocations: 294.6 kB / 406.4 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004404/0.3138, allocations: 268.1 kB / 406.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.314, allocations: 131.5 kB / 406.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.3142, allocations: 167.4 kB / 407 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.3142, allocations: 24 kB / 407 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.3146, allocations: 183.8 kB / 407.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.447e-05/0.3146, allocations: 59.77 kB / 407.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.3148, allocations: 147.3 kB / 407.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005666/0.3153, allocations: 0.4944 MB / 407.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3154, allocations: 4 kB / 407.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3154, allocations: 0 / 407.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.016e-06/0.3154, allocations: 0 / 407.9 MB, free: 1.672 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.001679/0.3171, allocations: 0.7178 MB / 408.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3171, allocations: 8.031 kB / 408.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008205/0.3179, allocations: 120.5 kB / 408.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.3183, allocations: 256.5 kB / 409 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.3183, allocations: 29.03 kB / 409 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.3184, allocations: 40.27 kB / 409.1 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.3189, allocations: 329 kB / 409.4 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.319, allocations: 8 kB / 409.4 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.319, allocations: 8 kB / 409.4 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.319, allocations: 8 kB / 409.4 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.3194, allocations: 250.4 kB / 409.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.3212, allocations: 1.435 MB / 411.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006191/0.3219, allocations: 0.7095 MB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.322, allocations: 100.8 kB / 411.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.709e-05/0.3221, allocations: 97.02 kB / 412 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.3222, allocations: 38.56 kB / 412 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.3222, allocations: 0 / 412 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00118/0.3234, allocations: 495.3 kB / 412.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3234, allocations: 51.41 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.3236, allocations: 172 kB / 412.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.3236, allocations: 37.69 kB / 412.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.434e-05/0.3237, allocations: 172 kB / 412.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.386e-05/0.3238, allocations: 78.77 kB / 413 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.078e-05/0.3239, allocations: 57.97 kB / 413.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.324, allocations: 326.8 kB / 413.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3241, allocations: 68.53 kB / 413.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.3243, allocations: 129 kB / 413.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.3245, allocations: 212.2 kB / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3246, allocations: 0 / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005366/0.3251, allocations: 336.4 kB / 414.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3251, allocations: 10.5 kB / 414.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3251, allocations: 0 / 414.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.3255, allocations: 80.95 kB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3256, allocations: 43.98 kB / 414.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/0.3275, allocations: 2.037 MB / 416.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3276, allocations: 27.69 kB / 416.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.3277, allocations: 8 kB / 416.3 MB, free: 8.594 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.0001347/0.3278, allocations: 149.8 kB / 416.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.3279, allocations: 19.75 kB / 416.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000529/0.3284, allocations: 285.6 kB / 416.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3284, allocations: 4 kB / 416.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3284, allocations: 4 kB / 416.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3284, allocations: 0 / 416.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008991/0.3293, allocations: 0.6892 MB / 417.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3293, allocations: 4 kB / 417.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3295, allocations: 31.92 kB / 417.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002273/0.3297, allocations: 68.81 kB / 417.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3297, allocations: 4 kB / 417.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00177/0.3315, allocations: 2.026 MB / 419.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3315, allocations: 0 / 419.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006112/0.3321, allocations: 452.5 kB / 420 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.3322, allocations: 112.9 kB / 420.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.3323, allocations: 0 / 420.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.3324, allocations: 11.98 kB / 420.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.3324, allocations: 15.98 kB / 420.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.3325, allocations: 4 kB / 420.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.3326, allocations: 131.5 kB / 420.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3326, allocations: 4 kB / 420.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004959/0.3331, allocations: 99.67 kB / 420.4 MB, free: 4.246 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.0002269/0.3333, allocations: 119.2 kB / 420.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006504/0.334, allocations: 362.2 kB / 420.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.334, allocations: 0 / 420.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003214/0.3343, allocations: 248.9 kB / 421.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3347, allocations: 26.34 kB / 421.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.3357, allocations: 0.5632 MB / 421.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.336, allocations: 0.7599 MB / 422.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.3361, allocations: 25.94 kB / 422.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.315e-05/0.3362, allocations: 19.44 kB / 422.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3362, allocations: 0 / 422.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Templates: time 0.006523/0.3427, allocations: 2.66 MB / 425.2 MB, free: 15.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/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