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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001768/0.001768, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 63.89 kB / 373.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09654, allocations: 53.32 MB / 427.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004151/0.1007, allocations: 2.852 MB / 430 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1027, allocations: 1.226 MB / 431.2 MB, free: 396 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1028, allocations: 11.94 kB / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1868/0.2896, allocations: 0.6086 MB / 431.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006231/0.2902, allocations: 140.6 kB / 432 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.2915, allocations: 0.6705 MB / 432.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.2918, allocations: 292.9 kB / 432.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.2922, allocations: 205.5 kB / 433.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.2924, allocations: 134 kB / 433.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.2926, allocations: 168.3 kB / 433.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.2927, allocations: 23.81 kB / 433.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003411/0.293, allocations: 189.8 kB / 433.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.364e-05/0.2931, allocations: 61.81 kB / 433.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2932, allocations: 149.2 kB / 433.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005426/0.2937, allocations: 0.4951 MB / 434.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2937, allocations: 0 / 434.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2937, allocations: 1.188 kB / 434.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.2937, allocations: 0.8125 kB / 434.4 MB, free: 7.887 MB / 350.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.0015/0.2952, allocations: 0.7313 MB / 435.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2953, allocations: 12.78 kB / 435.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007853/0.2961, allocations: 113.6 kB / 435.2 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2964, allocations: 267.6 kB / 435.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.2964, allocations: 26.91 kB / 435.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.2965, allocations: 36.97 kB / 435.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.297, allocations: 336.2 kB / 435.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.297, allocations: 2.719 kB / 435.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.297, allocations: 14.81 kB / 435.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.297, allocations: 7.438 kB / 435.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.2974, allocations: 244.2 kB / 436.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.2996, allocations: 1.439 MB / 437.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007043/0.3003, allocations: 0.6868 MB / 438.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.3005, allocations: 92.95 kB / 438.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.3007, allocations: 170.1 kB / 438.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.3007, allocations: 40.86 kB / 438.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.3007, allocations: 0 / 438.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001267/0.302, allocations: 494.8 kB / 439 MB, free: 5.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.302, allocations: 53.44 kB / 439.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3022, allocations: 173.5 kB / 439.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3022, allocations: 35.08 kB / 439.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.3023, allocations: 179.2 kB / 439.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.566e-05/0.3023, allocations: 94.89 kB / 439.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.3024, allocations: 54.03 kB / 439.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3025, allocations: 327.8 kB / 439.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.3026, allocations: 66.45 kB / 440 MB, free: 4.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3027, allocations: 134.6 kB / 440.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.303, allocations: 221.9 kB / 440.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.303, allocations: 1.219 kB / 440.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005426/0.3035, allocations: 329.1 kB / 440.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3036, allocations: 6.547 kB / 440.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.3036, allocations: 6.406 kB / 440.7 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.3039, allocations: 74.98 kB / 440.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.304, allocations: 44.97 kB / 440.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.3057, allocations: 2.022 MB / 442.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.3058, allocations: 34.38 kB / 442.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.3059, allocations: 10.16 kB / 442.9 MB, free: 2.109 MB / 350.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.0001144/0.306, allocations: 146.6 kB / 443 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.306, allocations: 21.67 kB / 443 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/0.3066, allocations: 283 kB / 443.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3066, allocations: 3.922 kB / 443.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3066, allocations: 5.125 kB / 443.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3066, allocations: 2.438 kB / 443.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009022/0.3075, allocations: 0.6914 MB / 444 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.3075, allocations: 6.172 kB / 444 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.3076, allocations: 26.36 kB / 444 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002276/0.3078, allocations: 70.47 kB / 444.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.3078, allocations: 5.484 kB / 444.1 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.3096, allocations: 2.028 MB / 446.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3096, allocations: 0.875 kB / 446.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/0.3104, allocations: 449.8 kB / 446.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.3105, allocations: 111.9 kB / 446.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.3105, allocations: 9.797 kB / 446.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.3106, allocations: 10.2 kB / 446.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.3107, allocations: 18.78 kB / 446.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.3107, allocations: 9.719 kB / 446.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001208/0.3108, allocations: 126.3 kB / 446.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3108, allocations: 0 / 446.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005366/0.3113, allocations: 100.2 kB / 447 MB, free: 14.95 MB / 366.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.0002544/0.3116, allocations: 127.9 kB / 447.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006775/0.3123, allocations: 336.9 kB / 447.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3123, allocations: 1.562 kB / 447.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003712/0.3126, allocations: 237.8 kB / 447.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.313, allocations: 31.78 kB / 447.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3143, allocations: 0.5728 MB / 448.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.3148, allocations: 0.7564 MB / 449 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.79e-05/0.3149, allocations: 22.53 kB / 449 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.653e-05/0.315, allocations: 16.95 kB / 449 MB, free: 13.41 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.315, allocations: 1.625 kB / 449 MB, free: 13.41 MB / 366.1 MB Notification: Performance of Templates: time 0.008244/0.3232, allocations: 2.775 MB / 451.8 MB, free: 13.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.579321168363094]